Пример #1
0
 public ChangeStateEventArgs(HaxxitGameState state)
 {
     State = state;
 }
Пример #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);
 }