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; } }
/// <summary> /// Used to update current game state /// </summary> /// <param name="playbackEvent">Event causing this update</param> protected abstract void Update(ReplayPlaybackEvent playbackEvent);