C# Класс Aurora.Modules.CityBuilder.CityModule

Наследование: Aurora.Framework.IDataTransferable, IApplicationPlugin, ICityModule
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
companyNamePrefixes string[]
companyNameSuffixs string[]
companyNames string[]

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Close() публичный Метод

public Close ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Duplicate() публичный Метод

public Duplicate ( ) : Aurora.Framework.IDataTransferable
Результат Aurora.Framework.IDataTransferable

FromKVP() публичный Метод

public FromKVP ( object>.Dictionary KVP ) : void
KVP object>.Dictionary
Результат void

FromOSD() публичный Метод

public FromOSD ( OSDMap map ) : void
map OSDMap
Результат void

Initialize() публичный Метод

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
Результат void

PostInitialise() публичный Метод

This is called when the module has been loaded.
public PostInitialise ( ) : void
Результат void

PostStart() публичный Метод

public PostStart ( ) : void
Результат void

ReloadConfiguration() публичный Метод

public ReloadConfiguration ( IConfigSource config ) : void
config IConfigSource
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

ToKeyValuePairs() публичный Метод

public ToKeyValuePairs ( ) : object>.Dictionary
Результат object>.Dictionary

ToOSD() публичный Метод

public ToOSD ( ) : OSDMap
Результат OSDMap

cmdBackup() публичный Метод

public cmdBackup ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdBuilding() публичный Метод

public cmdBuilding ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdCityBuilder() публичный Метод

public cmdCityBuilder ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdDisable() публичный Метод

public cmdDisable ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdEnable() публичный Метод

public cmdEnable ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdExport() публичный Метод

public cmdExport ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdGenerate() публичный Метод

public cmdGenerate ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdGetParameter() публичный Метод

public cmdGetParameter ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdHelp() публичный Метод

public cmdHelp ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdImport() публичный Метод

public cmdImport ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdInfo() публичный Метод

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
Результат void

cmdList() публичный Метод

public cmdList ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdReset() публичный Метод

public cmdReset ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdRestore() публичный Метод

public cmdRestore ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

cmdSetParameter() публичный Метод

This method decodes the 'city set' console command.
public cmdSetParameter ( string module, string cmdParams ) : void
module string
cmdParams string
Результат void

createCube() публичный Метод

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
Результат OpenSim.Framework.PrimitiveBaseShape

createRegion() публичный Метод

public createRegion ( int x, int y, RegionInfo regionInfo ) : bool
x int
y int
regionInfo RegionInfo
Результат bool

randomValue() публичный статический Метод

public static randomValue ( int range ) : int
range int
Результат int

Описание свойств

companyNamePrefixes публичное свойство

public string[] companyNamePrefixes
Результат string[]

companyNameSuffixs публичное свойство

public string[] companyNameSuffixs
Результат string[]

companyNames публичное свойство

public string[] companyNames
Результат string[]