C# Class Aurora.Modules.CityBuilder.CityModule

Inheritance: Aurora.Framework.IDataTransferable, IApplicationPlugin, ICityModule
Datei anzeigen Open project: CobraElDiablo/CityModule Class Usage Examples

Public Properties

Property Type Description
companyNamePrefixes string[]
companyNameSuffixs string[]
companyNames string[]

Public Methods

Method Description
Close ( ) : void

Dispose ( ) : void

Duplicate ( ) : Aurora.Framework.IDataTransferable
FromKVP ( object>.Dictionary KVP ) : void
FromOSD ( OSDMap map ) : void
Initialize ( ISimulationBase openSim ) : void

This method is during the startup of the Aurora server, It is called just after the HTTP server has started and before any shared modules or regions have been loaded.

PostInitialise ( ) : void

This is called when the module has been loaded.

PostStart ( ) : void

ReloadConfiguration ( IConfigSource config ) : void

Start ( ) : void

ToKeyValuePairs ( ) : object>.Dictionary
ToOSD ( ) : OSDMap
cmdBackup ( string module, string cmdParams ) : void
cmdBuilding ( string module, string cmdParams ) : void

cmdCityBuilder ( string module, string cmdParams ) : void
cmdDisable ( string module, string cmdParams ) : void

cmdEnable ( string module, string cmdParams ) : void

cmdExport ( string module, string cmdParams ) : void

cmdGenerate ( string module, string cmdParams ) : void

cmdGetParameter ( string module, string cmdParams ) : void

cmdHelp ( string module, string cmdParams ) : void

cmdImport ( string module, string cmdParams ) : void

cmdInfo ( string module, string cmdParams ) : void

Handles one of the builtin commands on the main server's command console, this command is 'city info' it displays various information about the city, regions and buildings on the main servers console.

cmdList ( string module, string cmdParams ) : void
cmdReset ( string module, string cmdParams ) : void

cmdRestore ( string module, string cmdParams ) : void
cmdSetParameter ( string module, string cmdParams ) : void

This method decodes the 'city set' console command.

createCube ( System.Vector3 pos, System.Vector3 dim, UUID TextureID ) : OpenSim.Framework.PrimitiveBaseShape

Constructs a cube at a given location and size.

createRegion ( int x, int y, RegionInfo regionInfo ) : bool

randomValue ( int range ) : int

Private Methods

Method Description
InstallModule ( ) : void

doBackup ( ) : void

doBuilding ( ) : void

doExport ( string filePath, DataSetType data_type ) : bool

doGenerate ( int seed_value ) : bool

This method will produce a random city with the central region of the city being specified as a parameter. More parameters need to be made available for this method to produce a better quality city, note for now the minimum area for a city is a 3x3 grid of regions. This code is based on the original C++ version called pixel city.

doImport ( string filePath, DataSetType data_type ) : bool

doLightStrip ( int x1, int z1, int direction ) : void

doList ( ) : void

doRestore ( ) : void

doRoad ( int x1, int y1, int width, int depth ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Duplicate() public method

public Duplicate ( ) : Aurora.Framework.IDataTransferable
return Aurora.Framework.IDataTransferable

FromKVP() public method

public FromKVP ( object>.Dictionary KVP ) : void
KVP object>.Dictionary
return void

FromOSD() public method

public FromOSD ( OSDMap map ) : void
map OSDMap
return void

Initialize() public method

This method is during the startup of the Aurora server, It is called just after the HTTP server has started and before any shared modules or regions have been loaded.
public Initialize ( ISimulationBase openSim ) : void
openSim ISimulationBase
return void

PostInitialise() public method

This is called when the module has been loaded.
public PostInitialise ( ) : void
return void

PostStart() public method

public PostStart ( ) : void
return void

ReloadConfiguration() public method

public ReloadConfiguration ( IConfigSource config ) : void
config IConfigSource
return void

Start() public method

public Start ( ) : void
return void

ToKeyValuePairs() public method

public ToKeyValuePairs ( ) : object>.Dictionary
return object>.Dictionary

ToOSD() public method

public ToOSD ( ) : OSDMap
return OSDMap

cmdBackup() public method

public cmdBackup ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdBuilding() public method

public cmdBuilding ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdCityBuilder() public method

public cmdCityBuilder ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdDisable() public method

public cmdDisable ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdEnable() public method

public cmdEnable ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdExport() public method

public cmdExport ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdGenerate() public method

public cmdGenerate ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdGetParameter() public method

public cmdGetParameter ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdHelp() public method

public cmdHelp ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdImport() public method

public cmdImport ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdInfo() public method

Handles one of the builtin commands on the main server's command console, this command is 'city info' it displays various information about the city, regions and buildings on the main servers console.
public cmdInfo ( string module, string cmdParams ) : void
module string The name of the module, should be 'city' or the actual modules name.
cmdParams string
return void

cmdList() public method

public cmdList ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdReset() public method

public cmdReset ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdRestore() public method

public cmdRestore ( string module, string cmdParams ) : void
module string
cmdParams string
return void

cmdSetParameter() public method

This method decodes the 'city set' console command.
public cmdSetParameter ( string module, string cmdParams ) : void
module string
cmdParams string
return void

createCube() public method

Constructs a cube at a given location and size.
public createCube ( System.Vector3 pos, System.Vector3 dim, UUID TextureID ) : OpenSim.Framework.PrimitiveBaseShape
pos System.Vector3 The position of the cube, at it's center, [X,Y,Z]
dim System.Vector3 The size of the cube.
TextureID UUID
return OpenSim.Framework.PrimitiveBaseShape

createRegion() public method

public createRegion ( int x, int y, RegionInfo regionInfo ) : bool
x int
y int
regionInfo RegionInfo
return bool

randomValue() public static method

public static randomValue ( int range ) : int
range int
return int

Property Details

companyNamePrefixes public_oe property

public string[] companyNamePrefixes
return string[]

companyNameSuffixs public_oe property

public string[] companyNameSuffixs
return string[]

companyNames public_oe property

public string[] companyNames
return string[]