Terrarium.Game.WorldState.WorldState C# (CSharp) 메소드

WorldState() 공개 메소드

Creates a new world state with the given number of grid cells.
public WorldState ( int gridWidth, int gridHeight ) : System
gridWidth int The width of the world state in grid cells.
gridHeight int The height of the world state in grid cells.
리턴 System
        public WorldState(int gridWidth, int gridHeight)
        {
            _gridWidth = gridWidth;
            _gridHeight = gridHeight;

            _cellOrganisms = new OrganismState[gridWidth,gridHeight];
        }