![]() |
Raymond Maarloeve
|
Responsible for generating the game map, including terrain layout, building placement, wall construction, decoration, and clues. More...
Public Member Functions | |
| void | GenerateMap () |
| Generates the full map including walls, buildings, decorations, and paths. | |
| void | GenerateClue () |
| Spawns clues randomly on the generated map. | |
| GameObject | GetBuilding (HashSet< BuildingData.BuildingType > allowedTypes) |
| Returns a suitable building for an NPC from allowed types. | |
| void | DebugTilesInConsole () |
| Prints tile layout information to the Unity console for debugging purposes. | |
Public Attributes | |
| NavMeshSurface | surface |
| Terrain | terrain |
| int | tileSize = 10 |
| int | mapWidthInTiles = 10 |
| int | mapLengthInTiles = 10 |
| float | buildingsDensity = 0.2f |
| bool | markTiles = false |
| int | WallsMargin = 10 |
| List< BuildingSetup > | buildings = new() |
| List< WallsSetup > | walls = new() |
| List< BuildingSetup > | decorations = new() |
| List< ClueSetup > | clues = new() |
| List< Tile > | buildingsMainTile |
| List< GameObject > | spawnedBuildings |
| int | mapWidth |
| int | mapLength |
Properties | |
| static MapGenerator | Instance [get] |
| Singleton instance of the MapGenerator. | |
| bool | IsMapGenerated = false [get] |
| Indicates whether the map has already been generated. | |
Responsible for generating the game map, including terrain layout, building placement, wall construction, decoration, and clues.
| void MapGenerator.DebugTilesInConsole | ( | ) |
Prints tile layout information to the Unity console for debugging purposes.
| void MapGenerator.GenerateClue | ( | ) |
Spawns clues randomly on the generated map.
| void MapGenerator.GenerateMap | ( | ) |
Generates the full map including walls, buildings, decorations, and paths.
| GameObject MapGenerator.GetBuilding | ( | HashSet< BuildingData::BuildingType > | allowedTypes | ) |
Returns a suitable building for an NPC from allowed types.
| allowedTypes | Set of allowed building types. |
| List<BuildingSetup> MapGenerator.buildings = new() |
| float MapGenerator.buildingsDensity = 0.2f |
| List<Tile> MapGenerator.buildingsMainTile |
| List<ClueSetup> MapGenerator.clues = new() |
| List<BuildingSetup> MapGenerator.decorations = new() |
| int MapGenerator.mapLength |
| int MapGenerator.mapLengthInTiles = 10 |
| int MapGenerator.mapWidth |
| int MapGenerator.mapWidthInTiles = 10 |
| bool MapGenerator.markTiles = false |
| List<GameObject> MapGenerator.spawnedBuildings |
| NavMeshSurface MapGenerator.surface |
| Terrain MapGenerator.terrain |
| int MapGenerator.tileSize = 10 |
| List<WallsSetup> MapGenerator.walls = new() |
| int MapGenerator.WallsMargin = 10 |
|
staticget |
Singleton instance of the MapGenerator.
|
get |
Indicates whether the map has already been generated.