Loading...
Searching...
No Matches
CityBuilderTown.TownSetup Class Reference

Detailed Description

generates a random terrain at the start of the game
can be tested in the editor using the buttons in the inspector
theres a save test scene in CityBuilderTown.Tests/Setup/TownSetupTest.unity

https://citybuilder.softleitner.com/manual/town

Inheritance diagram for CityBuilderTown.TownSetup:

Public Member Functions

void Setup ()
 
void Clear ()
 

Public Attributes

Terrain Terrain
 
float HeightScale = 2f
 
float HeightOffsetDown = 0.4f
 
float HeightFlat = 0.2f
 
float HeightFactor = 1.2f
 
float HeightOffsetUp = 0.5f
 
float HeightBottom = 0.35f
 
float GrassMid = 75f
 
float GrassArea = 5f
 
int TreeIndex = 0
 
int TreeStep = 5
 
float TreeSize = 0.5f
 
float TreeScale = 5f
 
float TreeThreshold = 0.6f
 
float TreeHeightMin = 74
 
float TreeHeightMax = 85
 
int BushIndex = 3
 
int BushStep = 3
 
float BushSize = 0.25f
 
float BushScale = 10f
 
float BushThreshold = 0.85f
 
float BushHeightMin = 74
 
float BushHeightMax = 90
 
int RockIndex = 1
 
int RockStep = 2
 
float RockSize = 0.85f
 
float RockScale = 20f
 
float RockThreshold = 0.88f
 
float RockHeightMin = 75
 
float RockHeightMax = 999
 
int DetailStep = 3
 
float DetailScale = 2f
 
float DetailThreshold = 0.7f
 
float DetailHeight = 75