lastgames from sessiondata to playerdata

This commit is contained in:
Kai Philipp
2019-09-10 20:47:10 +02:00
parent aa93874a45
commit 06e3c0e3c3
7 changed files with 65 additions and 69 deletions
+8
View File
@@ -116,6 +116,12 @@ public:
int GetStartCash() const;
void SetStartCash(int cash);
// @TODO: lastGames here
void AddPlayerLastGame(long lastGames);
void SetPlayerLastGames(std::vector<long> lastGames);
std::vector<long> GetPlayerLastGames();
bool IsPlayerAllowedToJoinLimitRank();
bool operator<(const PlayerData &other) const;
private:
@@ -135,6 +141,8 @@ private:
bool m_isGameAdmin;
boost::shared_ptr<AvatarFile> m_netAvatarFile;
std::vector<long> m_lastGames;
mutable boost::mutex m_dataMutex;
};