コード例 #1
0
ファイル: MainViewModel.cs プロジェクト: mtrupkin/StarRL
 public MainViewModel(FlagshipGame flagshipGame, MainScreen mainScreen)
 {
     MainScreen = mainScreen;
     MainScreenViewModel = new MainMenuViewModel(this, MainScreen.MenuScreen);
     FlagshipGameViewModel = new FlagshipGameViewModel(flagshipGame, this, MainScreen.GameScreen);
     FlagshipGame = flagshipGame;
 }
コード例 #2
0
        public GalaxyScreenViewModel(FlagshipGameViewModel flagshipGameViewModel, GalaxyScreen galaxyScreen)
        {
            FlagshipGameViewModel = flagshipGameViewModel;
            FlagshipGame = FlagshipGameViewModel.FlagshipGame;
            GalaxyScreen = galaxyScreen;

            Initialize();
        }
コード例 #3
0
 public SystemScreenViewModel(FlagshipGameViewModel flagshipGameViewModel, SystemScreen systemScreen)
 {
     FlagshipGameViewModel = flagshipGameViewModel;
     SystemScreen = systemScreen;
     Initialize();
 }