Class TerrainOptions
Used to manage user interface elements for the terrain generator.
Inherited Members
Namespace: Global
Assembly: cs.temp.dll.dll
Syntax
public class TerrainOptions : Options
Methods
createUserSettingsFromOptions()
Create the terrain settings from the terrain options.
Declaration
public TerrainSettings createUserSettingsFromOptions()
Returns
| Type | Description |
|---|---|
| TerrainSettings | The terrain setttings. |
setupUIElements()
Setup the user interface elements for the terrain options.
Declaration
public void setupUIElements()
updateFields(TerrainSettings)
Update the user interface options with the settings used for terrain generation
Declaration
public void updateFields(TerrainSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| TerrainSettings | settings | The settings used for terrain generation. |
updateTerrainSizeField(Int32)
Update the terrain size slider in the user interface with the setting used.
Declaration
public void updateTerrainSizeField(int size)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | size | The actual size of the level generated. |