Exemplo n.º 1
0
 public ChangeStateEventArgs(HaxxitGameState state)
 {
     State = state;
 }
Exemplo n.º 2
0
 /// <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);
 }