Removed unused fields in GameMetaInfo and GameState (#6142)

* Removed unused fields in GameMetaInfo and GameState

* revert parent to AbstractGame

* init activePlayer to -1
This commit is contained in:
RickyRister 2025-09-15 01:22:11 -07:00 committed by GitHub
parent 9b3756e591
commit 94ba1c83c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 26 deletions

View file

@ -15,7 +15,7 @@ class GameMetaInfo : public QObject
{
Q_OBJECT
public:
explicit GameMetaInfo(AbstractGame *_game);
explicit GameMetaInfo(AbstractGame *parent);
QMap<int, QString> roomGameTypes;
@ -79,11 +79,6 @@ public:
return roomGameTypes.find(gameInfo_.game_types(index)).value();
}
AbstractGame *getGame() const
{
return game;
}
public slots:
void setStarted(bool s)
{
@ -105,7 +100,6 @@ signals:
void spectatorsOmniscienceChanged(bool omniscient);
private:
AbstractGame *game;
ServerInfo_Game gameInfo_;
};