Example #1
0
    // If has OutGameScreen, show that, since it kinda layers on top. Once that is closed, switch back to the InGameScreen.

    public ScreenContextStackGameData()
    {
        ScreenContextGameDataList = new List <ScreenContextGameData>();

        var defaultContext = new ScreenContextGameData(OutGameScreen.Title, InGameScreen.None);

        Add(defaultContext);
    }
Example #2
0
    public void Set(OutGameScreen outGameScreen, InGameScreen inGameScreen)
    {
        ScreenContextGameDataList.Clear();

        var newScreenContextGameData = new ScreenContextGameData(outGameScreen, inGameScreen);

        ScreenContextGameDataList.Add(newScreenContextGameData);
    }
Example #3
0
 public void SetupBaseScreen(ScreenContextGameData screenContextGameData)
 {
     GameDataController.SetBaseScreenAs(screenContextGameData);
 }
Example #4
0
 public void Set(ScreenContextGameData screenContextGameData)
 {
     ScreenContextGameDataList.Clear();
     ScreenContextGameDataList.Add(screenContextGameData);
 }
Example #5
0
    public void Add(OutGameScreen outGameScreen, InGameScreen inGameScreen)
    {
        var newScreenContextGameData = new ScreenContextGameData(outGameScreen, inGameScreen);

        ScreenContextGameDataList.Add(newScreenContextGameData);
    }
Example #6
0
 public void Add(ScreenContextGameData screenContextGameData)
 {
     ScreenContextGameDataList.Add(screenContextGameData);
 }
Example #7
0
 internal void SetBaseScreenAs(ScreenContextGameData screenContextGameData)
 {
     GameData.ScreenContextStackGameData.Set(screenContextGameData);
 }
Example #8
0
 public void CopyFrom(ScreenContextGameData otherScreenContextGameData)
 {
     OutGameScreen = otherScreenContextGameData.OutGameScreen;
     InGameScreen  = otherScreenContextGameData.InGameScreen;
 }