Differentiate games and replays.

Took 9 seconds
This commit is contained in:
Lukas Brübach 2025-09-10 14:48:09 +02:00
parent 0e33187388
commit 595eb609ad
29 changed files with 224 additions and 177 deletions

View file

@ -0,0 +1,12 @@
#include "replay.h"
#include "../client/tabs/tab_game.h"
Replay::Replay(TabGame *_tab, GameReplay *_replay) : AbstractGame(_tab)
{
gameState = new GameState(this, 0, -1, tab->getTabSupervisor()->getIsLocalGame(), {}, false,
false, -1, false);
connect(gameMetaInfo, &GameMetaInfo::startedChanged, gameState, &GameState::onStartedChanged);
playerManager = new PlayerManager(this, -1, false, true);
loadReplay(_replay);
}