Метод | Описание | |
---|---|---|
Build ( ) : void |
Build a town on the terrain using the data provided
|
|
Clear ( ) : void | ||
Initialize ( |
Initialize with required data
|
Метод | Описание | |
---|---|---|
ChangeTerrainTexture ( |
Change the alpha map data to the specified texture at the positon in world coordinates
|
|
ChangeTerrainTexture ( int x, int z, int texture, int width, bool draw = true ) : void |
Change the alpha map data to the texture at the map index [z,x]
|
|
DrawRoad ( |
traverse a road line and draw the road texture on the terrain
|
|
GenerateBuildingsOnRoad ( |
Generate Buildings on the edges of the road
|
|
GenerateObjectsInCell ( |
Generate some additional gameobjects to the inside of a cell
|
|
GetAlphaMap ( ) : void |
Store Alpha map data from the terrain
|
|
GetDetailMaps ( ) : void |
Store Detail map data from the terrain
|
|
GetPrefabsForType ( string type ) : List |
Access the user defined prefabs for this district type
|
|
InitializeStorage ( ) : void |
Create or clear city data storage
|
|
RemoveDetailsAroundGameObject ( |
Removes details spawned around the gameobject
|
|
SetAlphaMap ( ) : void |
Update alpha map of the terrain
|
|
SetDetailMaps ( ) : void |
Update detail map of the terrain
|
|
SpawnBuilding ( |
Spawn a building on the position
|
|
SpawnProp ( |
Spawn a random prop on the terrain
|
|
SpawnTree ( |
Spawn a random tree on the terrain
|
|
SplitCityData ( ) : void |
split up the data from the city in seperate list to allow for easier access
|
|
isOverlapping ( |
public Initialize ( |
||
terrain | ||
cityData | ||
terrainSettings | ||
townParent | ||
prefabs | Dictionary |
|
Результат | void |