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

Describes a base layer for a city map, contains: cityRegion A link that denotes which region (scene) is being used for this map in the server instance. age The age of the city (simulated) in years, future to allow for the city to change dynamically with age. multiRegion A flag used to represent whether or not the city is in a single region (scene) or spread over multiple regions. cityBuildings A list of buildings that are within the city limits. cityPlots A list of plots used in the city map, note that a plot can contain other things apart from buildings. cityClaims An array of values indicating the type of claim on the land, part of a complex, transport etc. estateIdent UUID of owning estate. cityMapOwner UUID of owning avatar. cityLandData Parcel settings for all regions contained within the city. cityEstateSettings Estate settings for all regions in the city.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
centralRegions List
cityBuildings List
cityPlots List
cityRegions ].Scene[
plotArray ].int[

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

Метод Описание
AddScene ( Scene scene, bool central ) : bool
CityMap ( ) : System
CityMap ( uint regionCount, UUID estateOwner, UUID avatar, List centers, List regionDensities, uint mapSeed ) : System
ClaimPlot ( BuildingPlot plot ) : bool

This method will lay claim to a plot of land in the city map. Find the associated plot in the internal plot list and claim it, if the plot is not found then add it to the list.

FindPlot ( int x, int y, int w, int d, PlotClaimType &type ) : int

Finds which building plot is occupying the point of land specified.

GetBuilding ( UUID ident ) : CityBuilding
GetBuilding ( int idx ) : CityBuilding
GetBuilding ( string buildingName ) : CityBuilding
GetPlot ( int idx ) : BuildingPlot
MakePlot ( int x, int y, int w, int d, PlotClaimType flags ) : BuildingPlot

Constructs a building plot for a given position, size and claim type, does not alter any internal properties, this is just a helper method that allows you to create building plots quickly for use as parameters to other internal/external methods that the class provides.

RemoveScene ( Scene scene ) : bool
isPlotClaimed ( BuildingPlot plot ) : bool

Determines if the plot specified has been claimed already or not.

this ( int rx, int ry ) : Scene

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

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

public AddScene ( Scene scene, bool central ) : bool
scene OpenSim.Region.Framework.Scenes.Scene
central bool
Результат bool

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

public CityMap ( ) : System
Результат System

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

public CityMap ( uint regionCount, UUID estateOwner, UUID avatar, List centers, List regionDensities, uint mapSeed ) : System
regionCount uint
estateOwner UUID
avatar UUID
centers List
regionDensities List
mapSeed uint
Результат System

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

This method will lay claim to a plot of land in the city map. Find the associated plot in the internal plot list and claim it, if the plot is not found then add it to the list.
public ClaimPlot ( BuildingPlot plot ) : bool
plot BuildingPlot
Результат bool

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

Finds which building plot is occupying the point of land specified.
public FindPlot ( int x, int y, int w, int d, PlotClaimType &type ) : int
x int
y int
w int
d int
type PlotClaimType
Результат int

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

public GetBuilding ( UUID ident ) : CityBuilding
ident UUID
Результат CityBuilding

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

public GetBuilding ( int idx ) : CityBuilding
idx int
Результат CityBuilding

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

public GetBuilding ( string buildingName ) : CityBuilding
buildingName string
Результат CityBuilding

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

public GetPlot ( int idx ) : BuildingPlot
idx int
Результат BuildingPlot

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

Constructs a building plot for a given position, size and claim type, does not alter any internal properties, this is just a helper method that allows you to create building plots quickly for use as parameters to other internal/external methods that the class provides.
public MakePlot ( int x, int y, int w, int d, PlotClaimType flags ) : BuildingPlot
x int
y int
w int
d int
flags PlotClaimType
Результат BuildingPlot

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

public RemoveScene ( Scene scene ) : bool
scene OpenSim.Region.Framework.Scenes.Scene
Результат bool

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

Determines if the plot specified has been claimed already or not.
public isPlotClaimed ( BuildingPlot plot ) : bool
plot BuildingPlot
Результат bool

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

public this ( int rx, int ry ) : Scene
rx int
ry int
Результат OpenSim.Region.Framework.Scenes.Scene

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

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

public List centralRegions
Результат List

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

public List cityBuildings
Результат List

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

public List cityPlots
Результат List

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

public Scene[,] cityRegions
Результат ].Scene[

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

public int[,] plotArray
Результат ].int[