C# Class Aurora.Modules.CityBuilder.CityModule

Inheritance: Aurora.Framework.IDataTransferable, IApplicationPlugin, ICityModule
Afficher le fichier Open project: CobraElDiablo/CityModule Class Usage Examples

Méthodes publiques

Свойство Type Description
companyNamePrefixes string[]
companyNameSuffixs string[]
companyNames string[]

Méthodes publiques

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

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

public Close ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Duplicate() public méthode

public Duplicate ( ) : Aurora.Framework.IDataTransferable
Résultat Aurora.Framework.IDataTransferable

FromKVP() public méthode

public FromKVP ( object>.Dictionary KVP ) : void
KVP object>.Dictionary
Résultat void

FromOSD() public méthode

public FromOSD ( OSDMap map ) : void
map OSDMap
Résultat void

Initialize() public méthode

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
Résultat void

PostInitialise() public méthode

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

PostStart() public méthode

public PostStart ( ) : void
Résultat void

ReloadConfiguration() public méthode

public ReloadConfiguration ( IConfigSource config ) : void
config IConfigSource
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

ToKeyValuePairs() public méthode

public ToKeyValuePairs ( ) : object>.Dictionary
Résultat object>.Dictionary

ToOSD() public méthode

public ToOSD ( ) : OSDMap
Résultat OSDMap

cmdBackup() public méthode

public cmdBackup ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdBuilding() public méthode

public cmdBuilding ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdCityBuilder() public méthode

public cmdCityBuilder ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdDisable() public méthode

public cmdDisable ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdEnable() public méthode

public cmdEnable ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdExport() public méthode

public cmdExport ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdGenerate() public méthode

public cmdGenerate ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdGetParameter() public méthode

public cmdGetParameter ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdHelp() public méthode

public cmdHelp ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdImport() public méthode

public cmdImport ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdInfo() public méthode

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
Résultat void

cmdList() public méthode

public cmdList ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdReset() public méthode

public cmdReset ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdRestore() public méthode

public cmdRestore ( string module, string cmdParams ) : void
module string
cmdParams string
Résultat void

cmdSetParameter() public méthode

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

createCube() public méthode

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
Résultat OpenSim.Framework.PrimitiveBaseShape

createRegion() public méthode

public createRegion ( int x, int y, RegionInfo regionInfo ) : bool
x int
y int
regionInfo RegionInfo
Résultat bool

randomValue() public static méthode

public static randomValue ( int range ) : int
range int
Résultat int

Property Details

companyNamePrefixes public_oe property

public string[] companyNamePrefixes
Résultat string[]

companyNameSuffixs public_oe property

public string[] companyNameSuffixs
Résultat string[]

companyNames public_oe property

public string[] companyNames
Résultat string[]