/// <summary> /// Dispatches the change state event. /// </summary> /// <param name="state">State.</param> protected void DispatchChangeStateEvent(BaseGameState state) { EventHandler <ChangeGameStateEventArgs> eventHandler = ChangeState; if (eventHandler != null) { eventHandler(this, new ChangeGameStateEventArgs(state)); } }
public ChangeGameStateEventArgs(BaseGameState state) { this.State = state; }