C# Class OpenSim.Region.CoreModules.SunModule

Inheritance: ISunModule
Datei anzeigen Open project: openmetaversefoundation/fortis-opensim

Private Properties

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

Public Methods

Method Description
Close ( ) : void
EstateToolsSunUpdate ( ulong regionHandle, bool FixedSun, bool useEstateTime, float FixedSunHour ) : void

GetCurrentSunHour ( ) : float
GetSunParameter ( string param ) : double
HandleSunConsoleCommand ( string module, string cmdparams ) : void
Initialise ( Scene scene, IConfigSource config ) : void
PostInitialise ( ) : void
SetSunParameter ( string param, double value ) : void
SunToClient ( IClientAPI client ) : void
SunUpdate ( ) : void

Private Methods

Method Description
AvatarEnteringParcel ( ScenePresence avatar, int localLandID, UUID regionID ) : void

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

GenSunPos ( ) : void

Calculate the sun's orbital position and its velocity.

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

Method Details

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
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

GetSunParameter() public method

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

HandleSunConsoleCommand() public method

public HandleSunConsoleCommand ( string module, string cmdparams ) : void
module string
cmdparams string
return void

Initialise() public method

public Initialise ( Scene scene, IConfigSource config ) : void
scene OpenSim.Region.Framework.Scenes.Scene
config IConfigSource
return void

PostInitialise() public method

public PostInitialise ( ) : void
return void

SetSunParameter() public method

public SetSunParameter ( string param, double value ) : void
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