protected override void LoadContent() { _spriteBatch = new SpriteBatch(GraphicsDevice); _graphics.PreferredBackBufferWidth = WindowSettings.WindowWidth; _graphics.PreferredBackBufferHeight = WindowSettings.WindowHeight; _graphics.ApplyChanges(); ContentChest.SetContentManager(Content); ContentChest.Load(); }
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); }
public void Update(float delta) { ContentChest.Load(); }