29 lines
780 B
C++
29 lines
780 B
C++
#pragma once
|
|
|
|
struct BattleDataContext;
|
|
class Player;
|
|
class CustomTeam;
|
|
class CustomMember
|
|
{
|
|
public:
|
|
|
|
void Join(Player* hum);
|
|
CustomTeam* GetTeam() { return team_; }
|
|
bool IsJoined() { return joined_; }
|
|
int GetJoinTime() { return join_time_; }
|
|
bool IsViewer() { return is_viewer_; }
|
|
const std::string& GetAccountId() { return account_id_; }
|
|
const std::string& GetSessionId() { return session_id_; }
|
|
std::shared_ptr<BattleDataContext>& GetNetData() { return battle_context_; };
|
|
|
|
private:
|
|
CustomTeam *team_ = nullptr;
|
|
bool joined_ = false;
|
|
int join_time_ = 0;
|
|
bool is_viewer_ = false;
|
|
std::string account_id_;
|
|
std::string session_id_;
|
|
std::shared_ptr<BattleDataContext> battle_context_;
|
|
friend class CustomBattle;
|
|
};
|