public static void GoToBattlePlaybackState(ReplayMapDataLoader mapDataLoader) { BattlePlaybackState battlePlaybackState = new BattlePlaybackState(); battlePlaybackState.Setup(null, null, mapDataLoader); Service.Get <EventManager>().RegisterObserver(battlePlaybackState, EventId.BattleRecordRetrieved, EventPriority.Default); }
public static void GoToBattlePlaybackState(BattleRecord battleRecord, BattleEntry battleEntry, IMapDataLoader mapDataLoader) { BattlePlaybackState battlePlaybackState = new BattlePlaybackState(); Service.Get <BattlePlaybackController>().InitPlayback(battleRecord, battleEntry); battlePlaybackState.Setup(battleRecord, battleEntry, mapDataLoader); }