More work on server redesign. Network mode still broken.
This commit is contained in:
@@ -46,7 +46,8 @@ public:
|
||||
SessionManager();
|
||||
virtual ~SessionManager();
|
||||
|
||||
void AddSession(boost::shared_ptr<SessionData> sessionData); // new Sessions have no player data
|
||||
void AddSession(boost::shared_ptr<SessionData> sessionData); // new Sessions without player data
|
||||
void AddSession(SessionWrapper session);
|
||||
void SetSessionPlayerData(SOCKET session, boost::shared_ptr<PlayerData> playerData);
|
||||
void RemoveSession(SOCKET session);
|
||||
|
||||
@@ -54,6 +55,10 @@ public:
|
||||
SessionWrapper GetSessionByPlayerName(const std::string playerName) const;
|
||||
SessionWrapper GetSessionByUniquePlayerId(unsigned uniqueId) const;
|
||||
|
||||
PlayerDataList GetPlayerDataList() const;
|
||||
bool IsPlayerConnected(const std::string &playerName) const;
|
||||
bool IsPlayerConnected(unsigned uniqueId) const;
|
||||
|
||||
void Clear();
|
||||
unsigned GetRawSessionCount();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user