Terrarium.Game.WorldState.WorldState C# (CSharp) Method

WorldState() public method

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.
return System
        public WorldState(int gridWidth, int gridHeight)
        {
            _gridWidth = gridWidth;
            _gridHeight = gridHeight;

            _cellOrganisms = new OrganismState[gridWidth,gridHeight];
        }