C# Class Tools.TownGenerator.TownGeneratorWindow

UI wrapper around the TownGenerator
Inheritance: EditorWindow
Show file Open project: TobieD/City-Generator

Public Methods

Method Description
Initialize ( ) : void

Initialize base settings

LoadSettings ( ) : void
SaveSettings ( ) : void

Save the current settings as the specified file format

Private Methods

Method Description
AddOrRemoveZoneType ( ) : void

Add or delete a new district type

CitySettings ( ) : void

select prefabs for a specific zone

CreatePrefabSelection ( string type ) : DistrictEditor

Create a new district zone

ExtensionByType ( ExportSettingType type ) : string
GenerationButtons ( ) : void

The buttons for generating, building and resetting

GenerationSettings ( ) : void

Adjust settings that generate the voronoi diagram

GetSettingsFromPreset ( CityType cityType ) : GenerationSettings

Define preset settings based on a type

ImportExportSettings ( ) : void

Save /Load Settings from a file

Init ( ) : void
LoadFromXml ( string filename ) : void
MakeDistrictSettings ( ) : List
MakePrefabList ( ) : List>.Dictionary

returns a look up map that contains all the prefabs per district

OnGUI ( ) : void

Drawing

SaveAsXml ( string filename ) : void

Method Details

Initialize() public method

Initialize base settings
public Initialize ( ) : void
return void

LoadSettings() public method

public LoadSettings ( ) : void
return void

SaveSettings() public method

Save the current settings as the specified file format
public SaveSettings ( ) : void
return void