Allow Judges to see all information, regardless of room settings (#5053)

This commit is contained in:
Zach H 2024-06-16 19:12:37 -04:00 committed by GitHub
parent e2ab8db958
commit b7fbc12ac0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 42 additions and 23 deletions

View file

@ -50,6 +50,7 @@ private:
QList<GameEventStorageItem *> gameEventList;
int privatePlayerId;
int forcedByJudge = -1;
bool overwriteOwnership = false;
public:
GameEventStorage();
@ -72,6 +73,10 @@ public:
{
forcedByJudge = playerId;
}
void setOverwriteOwnership(bool shouldOverwriteOwnership)
{
overwriteOwnership = shouldOverwriteOwnership;
}
void enqueueGameEvent(const ::google::protobuf::Message &event,
int playerId,