示例#1
0
        public static void GoToBattlePlaybackState(ReplayMapDataLoader mapDataLoader)
        {
            BattlePlaybackState battlePlaybackState = new BattlePlaybackState();

            battlePlaybackState.Setup(null, null, mapDataLoader);
            Service.Get <EventManager>().RegisterObserver(battlePlaybackState, EventId.BattleRecordRetrieved, EventPriority.Default);
        }
示例#2
0
        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);
        }