C# 클래스 Universe.Modules.Terrain.TerrainModule

상속: INonSharedRegionModule, ITerrainModule
파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe

보호된 프로퍼티들

프로퍼티 타입 설명
m_noTerrain bool
m_terrainPatchesSent Dictionary
m_use3DWater bool

공개 메소드들

메소드 설명
AddConsoleCommands ( ) : void

Adds the console commands.

AddRegion ( IScene scene ) : void
CalcLandArea ( IScene scene ) : uint

Calculates the land area.

CheckForTerrainUpdates ( ) : void

Checks to see if the terrain has been modified since last check but won't attempt to limit those changes to the limits specified in the estate settings currently invoked by the command line operations in the region server only

CheckForTerrainUpdates ( bool respectEstateSettings, bool forceSendOfTerrainInfo, bool isWater ) : void

Checks to see if the terrain has been modified since last check. If it has been modified, every all the terrain patches are sent to the client. If the call is asked to respect the estate settings for terrain_raise_limit and terrain_lower_limit, it will clamp terrain updates between these values currently invoked by client_OnModifyTerrain only and not the Commander interfaces should height map deltas be limited to the estate settings limits force send terrain Check water or terrain

Close ( ) : void
EventManager_OnNewClient ( IClientAPI client ) : void

Installs terrain brush hook to IClientAPI

EventManager_OnSignificantClientMovement ( IScenePresence presence ) : void
Initialize ( IConfigSource config ) : void

Creates and initializes a terrain module for a region

InstallDefaultEffects ( ) : void

Installs into terrain module the standard suite of brushes

InterfaceBakeTerrain ( IScene scene, string cmd ) : void
InterfaceCalcArea ( IScene scene, string cmd ) : void
InterfaceElevateTerrain ( IScene scene, string cmd ) : void
InterfaceEnableExperimentalBrushes ( IScene scene, string cmd ) : void
InterfaceFillTerrain ( IScene scene, string cmd ) : void
InterfaceFlipTerrain ( IScene scene, string cmd ) : void
InterfaceGenerateTerrain ( IScene scene, string cmd ) : void

User interface for user generation of terrain in the selected region.

InterfaceHelp ( IScene scene, string cmd ) : void

Command line interface help.

InterfaceLoadFile ( IScene scene, string cmd ) : void
InterfaceLoadTileFile ( IScene scene, string cmd ) : void
InterfaceLowerTerrain ( IScene scene, string cmd ) : void
InterfaceMultiplyTerrain ( IScene scene, string cmd ) : void
InterfaceRescaleTerrain ( IScene scene, string cmd ) : void
InterfaceRevertTerrain ( IScene scene, string cmd ) : void
InterfaceSaveFile ( IScene scene, string cmd ) : void
InterfaceSavePhysics ( IScene scene, string cmd ) : void
InterfaceShowDebugStats ( IScene scene, string cmd ) : void
InternalLoadFromStream ( string filename, Stream stream, int offsetX, int offsetY, ITerrainChannel update ) : ITerrainChannel

Loads a terrain file from a stream and installs it in the scene.

LoadFromFile ( string filename, int offsetX, int offsetY ) : void

Loads a terrain file from disk and installs it in the scene.

LoadFromStream ( string filename, Stream stream ) : void

Loads a terrain file from a stream and installs it in the scene.

LoadFromStream ( string filename, Stream stream, int offsetX, int offsetY ) : void

Loads a terrain file from a stream and installs it in the scene.

LoadFromStream ( string filename, Uri pathToTerrainHeightmap ) : void

Loads a terrain file from the specified URI

LoadPlugins ( ) : void
LoadRevertMap ( ) : void

Loads the World Revert heightmap

LoadRevertMapFromStream ( string filename, Stream stream, int offsetX, int offsetY ) : void

Loads a terrain file from a stream and installs it in the scene.

LoadRevertWaterMap ( ) : void

Loads the World Revert heightmap

LoadTileFromFile ( string filename, int fileTileWidth, int fileTileHeight, int tileLocX, int tileLocY ) : void

Loads a 256x256 tile from a larger terrain file and installs it into the region.

LoadWaterFromStream ( string filename, Stream stream, int offsetX, int offsetY ) : void

Loads a terrain file from a stream and installs it in the scene.

LoadWaterRevertMapFromStream ( string filename, Stream stream, int offsetX, int offsetY ) : void

Loads a terrain file from a stream and installs it in the scene.

LoadWorldHeightmap ( ) : void

Loads the World heightmap

LoadWorldWaterMap ( ) : void

Loads the World heightmap

ModifyTerrain ( UUID user, System.Vector3 pos, byte size, byte action, UUID agentId ) : void

Modify Land

OnClosingClient ( IClientAPI client ) : void
OnNewPresence ( IScenePresence presence ) : void
QueueTerrainUpdate ( ) : void
RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : void
ResetTerrain ( ) : void

Reset the terrain of this region to the default

ResetWater ( ) : void

Reset the terrain of this region to the default

SaveToFile ( string filename ) : void

Saves the current heightmap to a specified file.

SaveToStream ( ITerrainChannel channel, string filename, Stream stream ) : void

Saves the current heightmap to a specified stream.

SendLayerData ( IClientAPI RemoteClient ) : void

Send the region heightmap to the client

StoreUndoState ( ) : void
TaintTerrain ( ) : void
TerrainUpdateTimer ( object sender, EventArgs ea ) : void
UndoTerrain ( ITerrainChannel channel ) : void
UpdateRevertMap ( ) : void

Saves the current state of the region into the revert map buffer.

UpdateRevertWaterMap ( ) : void

Saves the current state of the region into the revert map buffer.

UpdateWaterHeight ( double height ) : void
client_OnBakeTerrain ( IClientAPI remoteClient ) : void
client_OnLandUndo ( IClientAPI client ) : void
client_OnModifyTerrain ( UUID user, float height, float seconds, byte size, byte action, float north, float west, float south, float east, UUID agentId, float BrushSize ) : void
client_onGodlikeMessage ( IClientAPI client, UUID requester, string Method, List Parameters ) : void

보호된 메소드들

메소드 설명
SendTerrainUpdatesForClient ( IScenePresence presence ) : void

비공개 메소드들

메소드 설명
FindModuleForScene ( IScene scene ) : List
GetTerrainLoader ( string fileName ) : ITerrainLoader

Gets the terrain loader.

LimitChannelChanges ( ITerrainChannel channel, ITerrainChannel revert ) : bool

Checks to see height deltas in the tainted terrain patch at xStart ,yStart are all within the current estate limits true if changes were limited, false otherwise

LimitMaxTerrain ( ITerrainChannel channel ) : bool
URIFetch ( Uri uri ) : Stream
UniverseEventManager_OnGenericEvent ( string FunctionName, object parameters ) : object

메소드 상세

AddConsoleCommands() 공개 메소드

Adds the console commands.
public AddConsoleCommands ( ) : void
리턴 void

AddRegion() 공개 메소드

public AddRegion ( IScene scene ) : void
scene IScene
리턴 void

CalcLandArea() 공개 메소드

Calculates the land area.
public CalcLandArea ( IScene scene ) : uint
scene IScene Scene.
리턴 uint

CheckForTerrainUpdates() 공개 메소드

Checks to see if the terrain has been modified since last check but won't attempt to limit those changes to the limits specified in the estate settings currently invoked by the command line operations in the region server only
public CheckForTerrainUpdates ( ) : void
리턴 void

CheckForTerrainUpdates() 공개 메소드

Checks to see if the terrain has been modified since last check. If it has been modified, every all the terrain patches are sent to the client. If the call is asked to respect the estate settings for terrain_raise_limit and terrain_lower_limit, it will clamp terrain updates between these values currently invoked by client_OnModifyTerrain only and not the Commander interfaces should height map deltas be limited to the estate settings limits force send terrain Check water or terrain
public CheckForTerrainUpdates ( bool respectEstateSettings, bool forceSendOfTerrainInfo, bool isWater ) : void
respectEstateSettings bool
forceSendOfTerrainInfo bool
isWater bool
리턴 void

Close() 공개 메소드

public Close ( ) : void
리턴 void

EventManager_OnNewClient() 공개 메소드

Installs terrain brush hook to IClientAPI
public EventManager_OnNewClient ( IClientAPI client ) : void
client IClientAPI
리턴 void

EventManager_OnSignificantClientMovement() 공개 메소드

public EventManager_OnSignificantClientMovement ( IScenePresence presence ) : void
presence IScenePresence
리턴 void

Initialize() 공개 메소드

Creates and initializes a terrain module for a region
public Initialize ( IConfigSource config ) : void
config IConfigSource Config for the region
리턴 void

InstallDefaultEffects() 공개 메소드

Installs into terrain module the standard suite of brushes
public InstallDefaultEffects ( ) : void
리턴 void

InterfaceBakeTerrain() 공개 메소드

public InterfaceBakeTerrain ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceCalcArea() 공개 메소드

public InterfaceCalcArea ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceElevateTerrain() 공개 메소드

public InterfaceElevateTerrain ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceEnableExperimentalBrushes() 공개 메소드

public InterfaceEnableExperimentalBrushes ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceFillTerrain() 공개 메소드

public InterfaceFillTerrain ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceFlipTerrain() 공개 메소드

public InterfaceFlipTerrain ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceGenerateTerrain() 공개 메소드

User interface for user generation of terrain in the selected region.
public InterfaceGenerateTerrain ( IScene scene, string cmd ) : void
scene IScene Scene.
cmd string Cmd.
리턴 void

InterfaceHelp() 공개 메소드

Command line interface help.
public InterfaceHelp ( IScene scene, string cmd ) : void
scene IScene Scene.
cmd string Cmd.
리턴 void

InterfaceLoadFile() 공개 메소드

public InterfaceLoadFile ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceLoadTileFile() 공개 메소드

public InterfaceLoadTileFile ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceLowerTerrain() 공개 메소드

public InterfaceLowerTerrain ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceMultiplyTerrain() 공개 메소드

public InterfaceMultiplyTerrain ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceRescaleTerrain() 공개 메소드

public InterfaceRescaleTerrain ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceRevertTerrain() 공개 메소드

public InterfaceRevertTerrain ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceSaveFile() 공개 메소드

public InterfaceSaveFile ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceSavePhysics() 공개 메소드

public InterfaceSavePhysics ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InterfaceShowDebugStats() 공개 메소드

public InterfaceShowDebugStats ( IScene scene, string cmd ) : void
scene IScene
cmd string
리턴 void

InternalLoadFromStream() 공개 메소드

Loads a terrain file from a stream and installs it in the scene.
public InternalLoadFromStream ( string filename, Stream stream, int offsetX, int offsetY, ITerrainChannel update ) : ITerrainChannel
filename string Filename to terrain file. Type is determined by extension.
stream Stream
offsetX int
offsetY int
update ITerrainChannel
리턴 ITerrainChannel

LoadFromFile() 공개 메소드

Loads a terrain file from disk and installs it in the scene.
public LoadFromFile ( string filename, int offsetX, int offsetY ) : void
filename string Filename to terrain file. Type is determined by extension.
offsetX int
offsetY int
리턴 void

LoadFromStream() 공개 메소드

Loads a terrain file from a stream and installs it in the scene.
public LoadFromStream ( string filename, Stream stream ) : void
filename string Filename to terrain file. Type is determined by extension.
stream Stream
리턴 void

LoadFromStream() 공개 메소드

Loads a terrain file from a stream and installs it in the scene.
public LoadFromStream ( string filename, Stream stream, int offsetX, int offsetY ) : void
filename string Filename to terrain file. Type is determined by extension.
stream Stream
offsetX int
offsetY int
리턴 void

LoadFromStream() 공개 메소드

Loads a terrain file from the specified URI
public LoadFromStream ( string filename, Uri pathToTerrainHeightmap ) : void
filename string The name of the terrain to load
pathToTerrainHeightmap System.Uri The URI to the terrain height map
리턴 void

LoadPlugins() 공개 메소드

public LoadPlugins ( ) : void
리턴 void

LoadRevertMap() 공개 메소드

Loads the World Revert heightmap
public LoadRevertMap ( ) : void
리턴 void

LoadRevertMapFromStream() 공개 메소드

Loads a terrain file from a stream and installs it in the scene.
public LoadRevertMapFromStream ( string filename, Stream stream, int offsetX, int offsetY ) : void
filename string Filename to terrain file. Type is determined by extension.
stream Stream
offsetX int
offsetY int
리턴 void

LoadRevertWaterMap() 공개 메소드

Loads the World Revert heightmap
public LoadRevertWaterMap ( ) : void
리턴 void

LoadTileFromFile() 공개 메소드

Loads a 256x256 tile from a larger terrain file and installs it into the region.
public LoadTileFromFile ( string filename, int fileTileWidth, int fileTileHeight, int tileLocX, int tileLocY ) : void
filename string The terrain file to load
fileTileWidth int The width of the file
fileTileHeight int The height of the file
tileLocX int Where to begin our slice
tileLocY int Where to begin our slice
리턴 void

LoadWaterFromStream() 공개 메소드

Loads a terrain file from a stream and installs it in the scene.
public LoadWaterFromStream ( string filename, Stream stream, int offsetX, int offsetY ) : void
filename string Filename to terrain file. Type is determined by extension.
stream Stream
offsetX int
offsetY int
리턴 void

LoadWaterRevertMapFromStream() 공개 메소드

Loads a terrain file from a stream and installs it in the scene.
public LoadWaterRevertMapFromStream ( string filename, Stream stream, int offsetX, int offsetY ) : void
filename string Filename to terrain file. Type is determined by extension.
stream Stream
offsetX int
offsetY int
리턴 void

LoadWorldHeightmap() 공개 메소드

Loads the World heightmap
public LoadWorldHeightmap ( ) : void
리턴 void

LoadWorldWaterMap() 공개 메소드

Loads the World heightmap
public LoadWorldWaterMap ( ) : void
리턴 void

ModifyTerrain() 공개 메소드

Modify Land
public ModifyTerrain ( UUID user, System.Vector3 pos, byte size, byte action, UUID agentId ) : void
user UUID
pos System.Vector3 Land-position (X,Y,0)
size byte The size of the brush (0=small, 1=medium, 2=large)
action byte 0=LAND_LEVEL, 1=LAND_RAISE, 2=LAND_LOWER, 3=LAND_SMOOTH, 4=LAND_NOISE, 5=LAND_REVERT
agentId UUID UUID of script-owner
리턴 void

OnClosingClient() 공개 메소드

public OnClosingClient ( IClientAPI client ) : void
client IClientAPI
리턴 void

OnNewPresence() 공개 메소드

public OnNewPresence ( IScenePresence presence ) : void
presence IScenePresence
리턴 void

QueueTerrainUpdate() 공개 메소드

public QueueTerrainUpdate ( ) : void
리턴 void

RegionLoaded() 공개 메소드

public RegionLoaded ( IScene scene ) : void
scene IScene
리턴 void

RemoveRegion() 공개 메소드

public RemoveRegion ( IScene scene ) : void
scene IScene
리턴 void

ResetTerrain() 공개 메소드

Reset the terrain of this region to the default
public ResetTerrain ( ) : void
리턴 void

ResetWater() 공개 메소드

Reset the terrain of this region to the default
public ResetWater ( ) : void
리턴 void

SaveToFile() 공개 메소드

Saves the current heightmap to a specified file.
public SaveToFile ( string filename ) : void
filename string The destination filename
리턴 void

SaveToStream() 공개 메소드

Saves the current heightmap to a specified stream.
public SaveToStream ( ITerrainChannel channel, string filename, Stream stream ) : void
channel ITerrainChannel
filename string The destination filename. Used here only to identify the image type
stream Stream
리턴 void

SendLayerData() 공개 메소드

Send the region heightmap to the client
public SendLayerData ( IClientAPI RemoteClient ) : void
RemoteClient IClientAPI Client to send to
리턴 void

SendTerrainUpdatesForClient() 보호된 메소드

protected SendTerrainUpdatesForClient ( IScenePresence presence ) : void
presence IScenePresence
리턴 void

StoreUndoState() 공개 메소드

public StoreUndoState ( ) : void
리턴 void

TaintTerrain() 공개 메소드

public TaintTerrain ( ) : void
리턴 void

TerrainUpdateTimer() 공개 메소드

public TerrainUpdateTimer ( object sender, EventArgs ea ) : void
sender object
ea System.EventArgs
리턴 void

UndoTerrain() 공개 메소드

public UndoTerrain ( ITerrainChannel channel ) : void
channel ITerrainChannel
리턴 void

UpdateRevertMap() 공개 메소드

Saves the current state of the region into the revert map buffer.
public UpdateRevertMap ( ) : void
리턴 void

UpdateRevertWaterMap() 공개 메소드

Saves the current state of the region into the revert map buffer.
public UpdateRevertWaterMap ( ) : void
리턴 void

UpdateWaterHeight() 공개 메소드

public UpdateWaterHeight ( double height ) : void
height double
리턴 void

client_OnBakeTerrain() 공개 메소드

public client_OnBakeTerrain ( IClientAPI remoteClient ) : void
remoteClient IClientAPI
리턴 void

client_OnLandUndo() 공개 메소드

public client_OnLandUndo ( IClientAPI client ) : void
client IClientAPI
리턴 void

client_OnModifyTerrain() 공개 메소드

public client_OnModifyTerrain ( UUID user, float height, float seconds, byte size, byte action, float north, float west, float south, float east, UUID agentId, float BrushSize ) : void
user UUID
height float
seconds float
size byte
action byte
north float
west float
south float
east float
agentId UUID
BrushSize float
리턴 void

client_onGodlikeMessage() 공개 메소드

public client_onGodlikeMessage ( IClientAPI client, UUID requester, string Method, List Parameters ) : void
client IClientAPI
requester UUID
Method string
Parameters List
리턴 void

프로퍼티 상세

m_noTerrain 보호되어 있는 프로퍼티

protected bool m_noTerrain
리턴 bool

m_terrainPatchesSent 보호되어 있는 프로퍼티

protected Dictionary m_terrainPatchesSent
리턴 Dictionary

m_use3DWater 보호되어 있는 프로퍼티

protected bool m_use3DWater
리턴 bool