More work on server redesign. Network mode still broken.

This commit is contained in:
lotodore
2007-08-20 15:30:22 +00:00
parent 7a1c1188b8
commit 9d63df9218
16 changed files with 1143 additions and 666 deletions
+6 -1
View File
@@ -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();