Ejemplo n.º 1
0
 public Cursor(WorldMap worldMap)
 {
     _worldMap = worldMap;
 }
Ejemplo n.º 2
0
        /// <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
        }
Ejemplo n.º 3
0
 public MapElement(WorldMap worldMap, Vector3Int position)
 {
     Position = position;
     WorldMap = worldMap;
 }
Ejemplo n.º 4
0
        /// <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
        }