public void updateFovMap(int level, Point point, FOVTerrain newTerrain) { if (point.x < 0 || point.x >= levelTCODMapSizes[level].width || point.y < 0 || point.y >= levelTCODMapSizes[level].height) return; levelTCODMaps[level].SetCell(point.x, point.y, newTerrain != FOVTerrain.Blocking, false); }
public void updateFovMap(int level, Point point, FOVTerrain newTerrain) { if (point.x < 0 || point.x >= levelTCODMapSizes[level].width || point.y < 0 || point.y >= levelTCODMapSizes[level].height) { return; } levelTCODMaps[level].SetCell(point.x, point.y, newTerrain != FOVTerrain.Blocking, false); }