Terrarium.Game.WorldState.WorldState C# (CSharp) Méthode

WorldState() public méthode

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

            _cellOrganisms = new OrganismState[gridWidth,gridHeight];
        }