AStarXNA.GridCell.GridCell C# (CSharp) Метод

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

public GridCell ( Microsoft.Xna.Framework.Game game, GridCellType type, Point position, Point screenCoordinates, int width, int height ) : System
game Microsoft.Xna.Framework.Game
type GridCellType
position Point
screenCoordinates Point
width int
height int
Результат System
        public GridCell(Game game, GridCellType type, Point position, Point screenCoordinates, int width, int height) : base(game)
        {
            Type = type;
            Position = position;
            ScreenCoordinates = screenCoordinates;
            Width = width;
            Height = height;
            pixel = new Texture2D(game.GraphicsDevice,1,1,1,TextureUsage.None,SurfaceFormat.Color);
            pixel.SetData(new[] {Color.White});
            State = GridCellState.NotVisited;
        }