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.
파일 보기 프로젝트 열기: CobraElDiablo/CityModule 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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[