remove player from team when leaving

This commit is contained in:
2023-08-15 13:01:50 +02:00
parent d1aa5cd8aa
commit 1e3b672897
6 changed files with 44 additions and 19 deletions

View File

@@ -67,6 +67,8 @@ public:
const TeamList& GetTeams() const { return m_Teams; }
void RemovePlayer(PlayerID pId);
};
} // namespace game

View File

@@ -74,6 +74,7 @@ public:
void AddPlayer(Player* newPlayer);
void RemovePlayer(const Player* player);
void ClearPlayers();
TeamColor GetColor() const;