C# Класс OpenSim.Region.CoreModules.World.Voxels.VoxelModule

Наследование: INonSharedRegionModule, ICommandableModule, IVoxelModule
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddRegion ( Scene scene ) : void
Close ( ) : void
Initialise ( IConfigSource config ) : void

Creates and initialises a terrain module for a region

LoadFromFile ( string filename ) : 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, Uri pathToTerrainHeightmap ) : void

Loads a terrain file from the specified URI

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

Modify Land

RegionLoaded ( Scene scene ) : void
RemoveRegion ( Scene scene ) : void
SaveToFile ( string filename ) : void

Saves the current heightmap to a specified file.

SaveToStream ( string filename, Stream stream ) : void

Saves the current heightmap to a specified stream.

TaintTerrain ( ) : void
UndoTerrain ( IVoxelChannel channel ) : void
UpdateRevertMap ( ) : void

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

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

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

EventManager_OnNewClient ( IClientAPI client ) : void

Installs terrain brush hook to IClientAPI

EventManager_OnPluginConsole ( string args ) : void

Processes commandline input. Do not call directly.

EventManager_OnTerrainTick ( ) : void

Performs updates to the region periodically, synchronising physics and other heightmap aware sections

HandleM_sceneEventManagerOnRegisterCaps ( UUID agentID, OpenSim.Framework.Capabilities.Caps caps ) : void
HandleMatTableReq ( string request, string path, string param, OpenSim.Framework.Servers.HttpServer.OSHttpRequest req, OpenSim.Framework.Servers.HttpServer.OSHttpResponse res ) : string
HandleSetMatTableReq ( string request, string path, string param, OpenSim.Framework.Servers.HttpServer.OSHttpRequest req, OpenSim.Framework.Servers.HttpServer.OSHttpResponse res ) : string
HandleVoxelChunkReq ( string request, string path, string param, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : string
InstallDefaultEffects ( ) : void

Installs into terrain module the standard suite of brushes

InstallInterfaces ( ) : void
InterfaceBakeTerrain ( Object args ) : void
InterfaceElevateTerrain ( Object args ) : void
InterfaceEnableExperimentalBrushes ( Object args ) : void
InterfaceFillTerrain ( Object args ) : void
InterfaceFlipTerrain ( Object args ) : void
InterfaceGenerate ( Object args ) : void
InterfaceLoadFile ( Object args ) : void
InterfaceLoadTileFile ( Object args ) : void
InterfaceLowerTerrain ( Object args ) : void
InterfaceMultiplyTerrain ( Object args ) : void
InterfaceRescaleTerrain ( Object args ) : void
InterfaceRevertTerrain ( Object args ) : void
InterfaceRunPluginEffect ( Object args ) : void
InterfaceSaveFile ( Object args ) : void
InterfaceShowDebugStats ( Object args ) : void
LimitChannelChanges ( int z ) : 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

SendChunk ( OpenSim.Framework.Servers.HttpServer.OSHttpRequest request, OpenSim.Framework.Servers.HttpServer.OSHttpResponse response, int X, int Y ) : void
StoreUndoState ( ) : void
TryParseRange ( string header, int &start, int &end ) : bool
URIFetch ( Uri uri ) : Stream
client_OnBakeTerrain ( IClientAPI remoteClient ) : void
client_OnLandUndo ( IClientAPI client ) : void
client_OnModifyTerrain ( UUID user, int x, int y, int z, byte action, double str, UUID agentId ) : void

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

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

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

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

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

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

Creates and initialises a terrain module for a region
public Initialise ( IConfigSource config ) : void
config IConfigSource Config for the region
Результат void

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

Loads a terrain file from disk and installs it in the scene.
public LoadFromFile ( string filename ) : void
filename string Filename to terrain file. Type is determined by extension.
Результат 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 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

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

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

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

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

public RemoveRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
Результат 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 ( string filename, Stream stream ) : void
filename string The destination filename. Used here only to identify the image type
stream Stream
Результат void

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

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

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

public UndoTerrain ( IVoxelChannel channel ) : void
channel IVoxelChannel
Результат void

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

Saves the current state of the region into the revert map buffer.
public UpdateRevertMap ( ) : void
Результат void