public ChangeStateEventArgs(HaxxitGameState state) { State = state; }
/// <summary> /// Pushes a state onto the stack. /// </summary> /// <param name="state">The state to push onto the top of the stack.</param> public void PushState(HaxxitGameState state) { if(state_stack.Count != 0) state_stack.Peek().Mediator = null; state_stack.Push(state); state.Mediator = mediator; state.Init(); state_stack.Peek().LoadContent(GraphicsDevice, spriteBatch, Content); }