Example #1
0
        protected override void LoadContent()
        {
            renderer.LoadContent();

            GameDataLoader.LoadContent(Content);

            base.LoadContent();

            LevelEditor = new Editor.Editor(this);

            eventAggregationManager.AddListener(new GoreFactory(this), true);
            eventAggregationManager.AddListener(new SpawnPlayersHandler(this), true);
            eventAggregationManager.AddListener(new StartGameHandler(this), true);
            eventAggregationManager.AddListener(new CheckGameStateHandler(this), true);
            eventAggregationManager.AddListener(new ShootHandler(this), true);
            eventAggregationManager.AddListener(new PowerupPickedUpHandler(this), true);

            eventAggregationManager.SendMessage(new StartGameMessage());

            DebugCommandUI = new DebugCommandUI(this, DefaultFont);
            Components.Add(DebugCommandUI);
        }
        protected override void LoadContent()
        {
            renderer.LoadContent();

            GameDataLoader.LoadContent(Content);

            base.LoadContent();

            LevelEditor = new Editor.Editor(this);

            eventAggregationManager.AddListener(new GoreFactory(this), true);
            eventAggregationManager.AddListener(new SpawnPlayersHandler(this), true);
            eventAggregationManager.AddListener(new StartGameHandler(this), true);
            eventAggregationManager.AddListener(new CheckGameStateHandler(this), true);
            eventAggregationManager.AddListener(new ShootHandler(this), true);
            eventAggregationManager.AddListener(new PowerupPickedUpHandler(this), true);

            eventAggregationManager.SendMessage(new StartGameMessage());

            DebugCommandUI = new DebugCommandUI(this, DefaultFont);
            Components.Add(DebugCommandUI);
        }