Exemple #1
0
        public override void LoadContent(ContentManager Content)
        {
            managerIsland.LoadContent(Content);
            managerPlayerUnits.LoadContent(Content);
            managerPlayerBuildings.LoadContent(Content);
            managerUI.LoadContent(Content);
            managerEnemies.LoadContent(Content);

            SelectRectangle.LoadContent(Content);

            cursor = Content.Load <Texture2D>("Cursor");

            managerMouse.MouseEventHandler += (sender, e) =>
            {
                if (!start)
                {
                    start     = true;
                    increment = 0.1f;
                    fadeOut   = 0;
                }

                if (showSummary)
                {
                    showSummary     = false;
                    Battleship.move = false;
                    ManagerBuildings.goldMines.Clear();

                    Initializer();
                    LoadContent(Content);
                }
            };
        }
Exemple #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()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     _managerPlayers.LoadContent(Content);
     _managerEnemies.LoadContent(Content);
     _managerNetwork.Start();
     // TODO: use this.Content to load your game content here
 }
Exemple #3
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            managerMap.LoadContent(Content);
            managerUnits.LoadContent(Content);
            managerEnemies.LoadContent(Content);
            managerBuildings.LoadContent(Content);
            managerUI.LoadContent(Content);

            SelectRectangle.LoadContent(Content);
        }