C# Class Universe.Modules.GlobalEnvironment.SunModule

Inheritance: ISunModule
ファイルを表示 Open project: Virtual-Universe/Virtual-Universe

Private Properties

Property Type Description
AvatarEnteringParcel void
EventManager_OnStartupComplete void
GenSunPos void
GetParamList string>.Dictionary
ParseCmdParams List
SunUpdateToAllClients void

Public Methods

Method Description
AddRegion ( IScene scene ) : void
Close ( ) : void
EstateToolsSunUpdate ( ulong regionHandle, bool fixedSun, bool useEstateTime, float fixedSunHour ) : void

GetCurrentSunHour ( ) : float
GetCurrentTimeAsLindenSunHour ( ) : float
GetSunParameter ( string param ) : double
HandleSunConsoleCommand ( IScene scene, string cmdparams ) : void
Initialize ( IConfigSource config ) : void
RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : void
SetSunParameter ( IScene scene, string param, double value ) : void
SunToClient ( IClientAPI client ) : void
SunUpdate ( ) : void

Private Methods

Method Description
AvatarEnteringParcel ( IScenePresence avatar, ILandObject oldParcel ) : void

When an avatar enters the region, it's probably a good idea to send them the current sun info

EventManager_OnStartupComplete ( IScene scene, List data ) : void
GenSunPos ( ) : void

Calculate the sun's orbital position and its velocity.

GetParamList ( ) : string>.Dictionary
ParseCmdParams ( string args ) : List
SunUpdateToAllClients ( ) : void

Method Details

AddRegion() public method

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

Close() public method

public Close ( ) : void
return void

EstateToolsSunUpdate() public method

public EstateToolsSunUpdate ( ulong regionHandle, bool fixedSun, bool useEstateTime, float fixedSunHour ) : void
regionHandle ulong
fixedSun bool Is the sun's position fixed?
useEstateTime bool Use the Region or Estate Sun hour?
fixedSunHour float What hour of the day is the Sun Fixed at?
return void

GetCurrentSunHour() public method

public GetCurrentSunHour ( ) : float
return float

GetCurrentTimeAsLindenSunHour() public method

public GetCurrentTimeAsLindenSunHour ( ) : float
return float

GetSunParameter() public method

public GetSunParameter ( string param ) : double
param string
return double

HandleSunConsoleCommand() public method

public HandleSunConsoleCommand ( IScene scene, string cmdparams ) : void
scene IScene
cmdparams string
return void

Initialize() public method

public Initialize ( IConfigSource config ) : void
config IConfigSource
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

SetSunParameter() public method

public SetSunParameter ( IScene scene, string param, double value ) : void
scene IScene
param string
value double
return void

SunToClient() public method

public SunToClient ( IClientAPI client ) : void
client IClientAPI
return void

SunUpdate() public method

public SunUpdate ( ) : void
return void