Exemple #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));
 }
Exemple #2
0
 public void pushScreen(Screen scr)
 {
     _stack.Push(scr);
 }
 public ScreenManagerEvent(Type e, Screen sc = null)
 {
     type = e;
     target = sc;
 }