C# Class Universe.Modules.GlobalEnvironment.WindModule

Inheritance: IWindModule, INonSharedRegionModule
Exibir arquivo Open project: Virtual-Universe/Virtual-Universe

Public Methods

Method Description
AddRegion ( IScene scene ) : void
Close ( ) : void
Initialize ( IConfigSource config ) : void
OnAgentEnteredRegion ( IScenePresence avatar ) : void
RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : void
WindParamGet ( string plugin, string param ) : float
WindParamSet ( string plugin, string param, float value ) : void
WindSpeed ( int x, int y, int z ) : System.Vector3

Retrieve the wind speed at the given region coordinate. This implementation ignores Z.

WindUpdate ( ) : void

Called on each frame update. Updates the wind model and clients as necessary.

Private Methods

Method Description
GenWindPos ( ) : void

Calculate the sun's orbital position and its velocity.

HandleConsoleBaseCommand ( IScene scene, string cmdparams ) : void

Called to change the active wind model plugin

HandleConsoleCommand ( string cmdparams ) : void

Base console command handler, only used if a person specifies the base command with now options

HandleConsoleParamCommand ( IScene scene, string cmdparams ) : void

Called to change plugin parameters.

SendWindAllClients ( ) : void

Method Details

AddRegion() public method

public AddRegion ( IScene scene ) : void
scene IScene
return void

Close() public method

public Close ( ) : void
return void

Initialize() public method

public Initialize ( IConfigSource config ) : void
config IConfigSource
return void

OnAgentEnteredRegion() public method

public OnAgentEnteredRegion ( IScenePresence avatar ) : void
avatar IScenePresence
return void

RegionLoaded() public method

public RegionLoaded ( IScene scene ) : void
scene IScene
return void

RemoveRegion() public method

public RemoveRegion ( IScene scene ) : void
scene IScene
return void

WindParamGet() public method

public WindParamGet ( string plugin, string param ) : float
plugin string
param string
return float

WindParamSet() public method

public WindParamSet ( string plugin, string param, float value ) : void
plugin string
param string
value float
return void

WindSpeed() public method

Retrieve the wind speed at the given region coordinate. This implementation ignores Z.
public WindSpeed ( int x, int y, int z ) : System.Vector3
x int 0...255
y int 0...255
z int Ignored
return System.Vector3

WindUpdate() public method

Called on each frame update. Updates the wind model and clients as necessary.
public WindUpdate ( ) : void
return void