private void ProcessEvent(Core.Event evt) { switch (evt.type) { case Core.EventType.SampleAnim: SampleAnim(); break; case Core.EventType.PlayEffect: PlayEffect(evt.data as EffectDef); break; case Core.EventType.PlaySound: PlaySound(evt.data as SoundDef); break; } }
private void ProcessMatchEvent(Core.Event evt) { switch (evt.type) { case Core.EventType.OnRoundStateChange: ProcessRoundState((Core.RoundState)evt.data); break; case Core.EventType.OnMatchStart: OnMatchStart(); break; case Core.EventType.OnMatchEnd: OnMatchEnd(); break; case Core.EventType.OnRoundStart: OnRoundStart((int)evt.data); break; case Core.EventType.OnRoundEnd: OnRoundEnd(); break; } }