Bricklayer.Client.World.Map.Map C# (CSharp) Метод

Map() публичный Метод

Creates a client-side version of a map at the specified width and height (To be changed later once Init packet recieved)
public Map ( Microsoft.Xna.Framework.Game game, int width, int height ) : System
game Microsoft.Xna.Framework.Game
width int
height int
Результат System
        public Map(Game game, int width, int height)
            : base()
        {
            Game = game;
            Width = width;
            Height = height;
            //Running the client!
            IsServer = false;
            //Select default block
            SelectedBlock = BlockType.Default;
            //Initialize tile array
            Tiles = new Tile[Width, Height, 2];
            Players = new List<Bricklayer.Common.Entities.Player>();

            //Setup camera
            CreateCamera();
            LoadContent();

            Spawn = new Vector2(Tile.Width, Tile.Height);

            pixel = new Texture2D(game.GraphicsDevice, 1, 1);
            pixel.SetData<Color>(new Color[1] { Color.White });

            SetMinimapColors();
        }