Example #1
0
        protected override void LoadContent()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);

            _graphics.PreferredBackBufferWidth  = WindowSettings.WindowWidth;
            _graphics.PreferredBackBufferHeight = WindowSettings.WindowHeight;
            _graphics.ApplyChanges();

            ContentChest.SetContentManager(Content);
            ContentChest.Load();
        }
Example #2
0
        protected override void LoadContent()
        {
            ContentChest = new ContentChest(Content);
            ContentChest.Load();

            _mainMenu = new MainMenu(ContentChest);
            _mainMenu.OnNewGamePressed += NewGame;
            _mainMenu.OnLoadGame       += LoadGame;

            _spriteBatch = new SpriteBatch(GraphicsDevice);

            WorldObjectChest.LoadPrototypes(ContentChest);
        }
Example #3
0
 public void Update(float delta)
 {
     ContentChest.Load();
 }