1
This commit is contained in:
parent
57ff329703
commit
2ae8fe18cc
@ -304,5 +304,5 @@ void CustomBattle::OnEnter(std::shared_ptr<cs::CMJoin> join_msg, long ip_saddr,
|
|||||||
|
|
||||||
void CustomBattle::OnMemberReady(CustomMember* member)
|
void CustomBattle::OnMemberReady(CustomMember* member)
|
||||||
{
|
{
|
||||||
|
NotifyState();
|
||||||
}
|
}
|
||||||
|
@ -51,9 +51,11 @@ class CustomBattle
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
void CalcTeam1AverageHeroLv();
|
void CalcTeam1AverageHeroLv();
|
||||||
|
void NotifyState();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool parse_ok_ = false;
|
bool parse_ok_ = false;
|
||||||
|
int state_ = 0;
|
||||||
Room *room_ = nullptr;
|
Room *room_ = nullptr;
|
||||||
int custom_room_type_ = CUSTOM_ROOM_CUSTOM;
|
int custom_room_type_ = CUSTOM_ROOM_CUSTOM;
|
||||||
bool is_moba_ = false;
|
bool is_moba_ = false;
|
||||||
|
@ -3031,3 +3031,11 @@ int Creature::Throw(int slot, const glm::vec3& bomb_pos, const glm::vec3& bomb_d
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CustomBattle::NotifyState()
|
||||||
|
{
|
||||||
|
cs::SMBattlePreInfoUpdate notify_msg;
|
||||||
|
for (auto& pair : socket_hash_) {
|
||||||
|
GGListener::Instance()->SendToClient(pair.first, 0, notify_msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user