/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { _camera = new ControlledCamera(); // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); _worldMap = new WorldMap(_camera); _worldMap.Load(Content); _worldMap.Create(); _cursor = new Cursor(); _cursor.Load(Content); AsyncPathfinding.Start(); GuiSystem.Load(GraphicsDevice); _light = Content.Load<Texture2D>("light"); PrioritySystem.CreatePriorityBoxes(); // TODO: use this.Content to load your game content here }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); _worldMap = new WorldMap(); _worldMap.Load(Content); _worldMap.Create(); _cursor = new Cursor(_worldMap); _cursor.Load(Content); TaskManager.Start(); // TODO: use this.Content to load your game content here }