Exemplo n.º 1
0
 /// <summary>
 /// Adds a screen to the stack
 /// Important, the screen will not be added immediatly. Changes on the stack will take effect during the next update
 /// </summary>
 /// <param name="scr">Le screen a rajouter</param>
 public void pushScreen(Screen scr)
 {
     scr.Initialize();
     Events.Enqueue(new ScreenManagerEvent(ScreenManagerEvent.Type.PUSH, scr));
 }
Exemplo n.º 2
0
 public void pushScreen(Screen scr)
 {
     _stack.Push(scr);
 }
Exemplo n.º 3
0
 public ScreenManagerEvent(Type e, Screen sc = null)
 {
     type = e;
     target = sc;
 }