コード例 #1
0
ファイル: LoadingScreen.cs プロジェクト: Wikzo/Hagenberg_2015
        private LoadingScreen(bool aLoadingIsSlow, GameScreen[] aScreensToLoad)
        {
            this._loadingIsSlow = aLoadingIsSlow;
            this._screensToLoad = aScreensToLoad;

            IsSerializable = false;

            TransitionOnTime = TimeSpan.FromSeconds(0.5);
        }
コード例 #2
0
ファイル: ScreenManager.cs プロジェクト: Wikzo/Hagenberg_2015
        public static void AddScreen(GameScreen aScreenToAdd)
        {
            aScreenToAdd.IsExiting = false;

            if (_isInitialized)
            {
                aScreenToAdd.LoadContent();
            }

            _screens.Add(aScreenToAdd);
        }
コード例 #3
0
ファイル: ScreenManager.cs プロジェクト: Wikzo/Hagenberg_2015
        public static void RemoveScreen(GameScreen aScreenToRemove)
        {
            if (_isInitialized)
            {
                aScreenToRemove.UnloadContent();
            }

            _screens.Remove(aScreenToRemove);
            _screensToUpdate.Remove(aScreenToRemove);
        }