Automatically close games if only spectators are left.
This commit is contained in:
@@ -50,8 +50,6 @@ public:
|
||||
SessionManager();
|
||||
virtual ~SessionManager();
|
||||
|
||||
bool HasSessions() const;
|
||||
|
||||
void AddSession(boost::shared_ptr<SessionData> sessionData);
|
||||
void SetSessionPlayerData(SessionId session, boost::shared_ptr<PlayerData> playerData);
|
||||
bool RemoveSession(SessionId session);
|
||||
@@ -72,8 +70,9 @@ public:
|
||||
void ResetAllReadyFlags();
|
||||
|
||||
void Clear();
|
||||
unsigned GetRawSessionCount();
|
||||
unsigned GetSessionCountWithState(int state);
|
||||
unsigned GetRawSessionCount() const;
|
||||
unsigned GetSessionCountWithState(int state) const;
|
||||
bool HasSessionWithState(int state) const;
|
||||
|
||||
void SendToAllSessions(SenderHelper &sender, boost::shared_ptr<NetPacket> packet, int state);
|
||||
void SendLobbyMsgToAllSessions(SenderHelper &sender, boost::shared_ptr<NetPacket> packet, int state);
|
||||
|
||||
Reference in New Issue
Block a user