1
This commit is contained in:
parent
3b46014e97
commit
6f7a270294
@ -124,3 +124,12 @@ int CustomBattle::GetMemberNum()
|
||||
{
|
||||
return member_id_hash_.size();
|
||||
}
|
||||
|
||||
void CustomBattle::TraverseMemberList(std::function<bool (CustomMember*)> func)
|
||||
{
|
||||
for (auto& pair : member_id_hash_) {
|
||||
if (!func(pair.second.get())) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ class CustomBattle
|
||||
std::shared_ptr<CustomTeam> GetTeamByTeamUuid(const std::string& team_uuid);
|
||||
bool AllIsJoined();
|
||||
int GetMemberNum();
|
||||
void TraverseMemberList(std::function<bool (CustomMember*)> func);
|
||||
|
||||
private:
|
||||
bool parse_ok_ = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user