This commit is contained in:
aozhiwei 2023-09-20 18:46:24 +08:00
parent 4029b36c59
commit 35a4907918
4 changed files with 16 additions and 0 deletions

View File

@ -21,3 +21,8 @@ bool CustomBattle::CanAdd(const std::string& account_id, const std::string& sess
{
return true;
}
std::shared_ptr<CustomTeam> CustomBattle::GetTeamByAccountId(const std::string& account_id)
{
}

View File

@ -20,6 +20,7 @@ class CustomBattle
int GetStartTime() { return start_time_; }
void ParseResult(a8::XObject& obj);
bool CanAdd(const std::string& account_id, const std::string& session_id);
std::shared_ptr<CustomTeam> GetTeamByAccountId(const std::string& account_id);
private:
bool parse_ok_ = false;

View File

@ -0,0 +1,9 @@
#include "precompile.h"
#include "custom_team.h"
std::shared_ptr<CustomMember> CustomTeam::GetMember(const std::string& account_id)
{
auto itr = member_hash_.find(account_id);
return itr != member_hash_.end() ? itr->second : nullptr;
}

View File

@ -6,6 +6,7 @@ class CustomTeam
public:
const std::string& GetTeamUuid() { return team_uuid_; }
std::shared_ptr<CustomMember> GetMember(const std::string& account_id);
private:
std::string team_uuid_;