public CellState(bool isBlocked, Coordinate2D coordinate2, TerrainType terrainType) { IsBlocked = isBlocked; Coordinate3 = coordinate2.To3D(); TerrainType = terrainType; }
public CellState(bool isBlocked, Coordinate3D coordinate3, TerrainType terrainType) { IsBlocked = isBlocked; Coordinate3 = coordinate3; TerrainType = terrainType; }
public void SetCellsTerrainType(List <Coordinate2D> coordinates, TerrainType terrainType) { SetCellsTerrainType(Coordinate2D.To3D(coordinates), terrainType); }
public void SetCellsTerrainType(Coordinate2D coordinate, TerrainType terrainType) { SetCellsTerrainType(coordinate.To3D(), terrainType); }
public void SetCellsTerrainType(Coordinate3D coordinate, TerrainType terrainType) { var cellState = GetCellState(coordinate); cellState.TerrainType = terrainType; }