Ejemplo n.º 1
0
        public WndWindowManager(Game game)
        {
            _game       = game;
            WindowStack = new Stack <Window>();

            game.InputMessageBuffer.Handlers.Add(new WndInputMessageHandler(this, _game));

            TransitionManager = new WindowTransitionManager(game.AssetStore.WindowTransitions);
        }
Ejemplo n.º 2
0
        public WndWindowManager(Game game)
        {
            _game        = game;
            _windowStack = new Stack <WndTopLevelWindow>();

            game.InputMessageBuffer.Handlers.Insert(0, new WndInputMessageHandler(this, _game));

            switch (game.SageGame)
            {
            case SageGame.CncGenerals:
            case SageGame.CncGeneralsZeroHour:
                game.ContentManager.IniDataContext.LoadIniFile(@"Data\INI\WindowTransitions.ini");
                TransitionManager = new WindowTransitionManager(game.ContentManager.IniDataContext.WindowTransitions);
                break;

            default:     // TODO: Handle other games.
                TransitionManager = new WindowTransitionManager(new List <Data.Ini.WindowTransition>());
                break;
            }
        }