예제 #1
0
        protected override void Update(ReplayPlaybackEvent playbackEvent)
        {
            switch (playbackEvent)
            {
            case ExportGroupPlaybackEvent exportGroupEvent:
                ExportGroupRead(exportGroupEvent.Channel, exportGroupEvent.ExportGroup);
                break;

            case ChannelClosedPlaybackEvent channelClosedEvent:
                Replay.GameInformation.ChannelClosed(channelClosedEvent.Channel);
                break;

            case NetDeltaPlaybackEvent deltaEvent:
                Replay.GameInformation.HandleDeltaNetRead(deltaEvent.DeltaUpdate);
                break;

            case ActorReadPlaybackEvent actorReadEvent:
                Replay.GameInformation.AddActor(actorReadEvent.Channel, actorReadEvent.Actor);
                break;
            }
        }
예제 #2
0
 /// <summary>
 /// Used to update current game state
 /// </summary>
 /// <param name="playbackEvent">Event causing this update</param>
 protected abstract void Update(ReplayPlaybackEvent playbackEvent);