More fixes. Using player name as base for game name now. Removing games which have no players left. Check collision of all player names on connect (kind of slow, but name needs to be unique).
This commit is contained in:
@@ -60,6 +60,9 @@ public:
|
||||
bool CheckPassword(const std::string &password) const;
|
||||
const GameData &GetGameData() const;
|
||||
|
||||
const SessionManager &GetSessionManager() const;
|
||||
SessionManager &GetSessionManager();
|
||||
|
||||
protected:
|
||||
|
||||
typedef std::deque<SessionWrapper> SessionQueue;
|
||||
@@ -82,8 +85,6 @@ protected:
|
||||
size_t GetCurNumberOfPlayers() const;
|
||||
void AssignPlayerNumbers();
|
||||
|
||||
SessionManager &GetSessionManager();
|
||||
const SessionManager &GetSessionManager() const;
|
||||
ServerLobbyThread &GetLobbyThread();
|
||||
|
||||
ServerGameState &GetState();
|
||||
|
||||
Reference in New Issue
Block a user