Add option to share decklists on load.

Took 1 hour 58 minutes

Took 9 minutes


Took 39 minutes
This commit is contained in:
Lukas Brübach 2025-07-09 21:04:57 +02:00
parent 3a42354efd
commit 0e45652f3f
23 changed files with 198 additions and 25 deletions

View file

@ -67,6 +67,7 @@ private:
bool spectatorsCanTalk;
bool spectatorsSeeEverything;
int startingLifeTotal;
bool shareDecklistsOnLoad;
int inactivityCounter;
int startTimeOfThisGame, secondsElapsed;
bool firstGameStarted;
@ -106,7 +107,8 @@ public:
bool _spectatorsNeedPassword,
bool _spectatorsCanTalk,
bool _spectatorsSeeEverything,
int startingLifeTotal,
int _startingLifeTotal,
bool _shareDecklistsOnLoad,
Server_Room *parent);
~Server_Game() override;
Server_Room *getRoom() const
@ -168,6 +170,10 @@ public:
{
return startingLifeTotal;
}
bool getShareDecklistsOnLoad() const
{
return shareDecklistsOnLoad;
}
Response::ResponseCode
checkJoin(ServerInfo_User *user, const QString &_password, bool spectator, bool overrideRestrictions, bool asJudge);
bool containsUser(const QString &userName) const;