C# Class Tools.TownGenerator.TownGeneratorWindow

UI wrapper around the TownGenerator
Inheritance: EditorWindow
Afficher le fichier Open project: TobieD/City-Generator

Méthodes publiques

Méthode Description
Initialize ( ) : void

Initialize base settings

LoadSettings ( ) : void
SaveSettings ( ) : void

Save the current settings as the specified file format

Private Methods

Méthode 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 méthode

Initialize base settings
public Initialize ( ) : void
Résultat void

LoadSettings() public méthode

public LoadSettings ( ) : void
Résultat void

SaveSettings() public méthode

Save the current settings as the specified file format
public SaveSettings ( ) : void
Résultat void