OpenSim
|
Public Member Functions | |
SceneBase (RegionInfo regInfo) | |
abstract void | Update (int frames) |
Called to update the scene loop by a number of frames and until shutdown. More... | |
abstract void | LoadWorldMap () |
Loads the World heightmap More... | |
virtual void | SendLayerData (IClientAPI RemoteClient) |
Send the region heightmap to the client More... | |
abstract ISceneAgent | AddNewAgent (IClientAPI client, PresenceType type) |
Add a new agent with an attached client. All agents except initial login clients will starts off as a child agent More... | |
abstract bool | CloseAgent (UUID agentID, bool force) |
Tell a single agent to disconnect from the region. More... | |
bool | TryGetScenePresence (UUID agentID, out object scenePresence) |
abstract bool | TryGetScenePresence (UUID agentID, out ScenePresence scenePresence) |
Try to get a scene presence from the scene More... | |
abstract void | OtherRegionUp (GridRegion otherRegion) |
virtual string | GetSimulatorVersion () |
virtual void | Close () |
Tidy before shutdown More... | |
uint | AllocateLocalId () |
Returns a new unallocated local ID More... | |
void | AddRegionModule (string name, IRegionModuleBase module) |
Add a region-module to this scene. TODO: This will replace AddModule in the future. More... | |
void | RemoveRegionModule (string name) |
void | RegisterModuleCommander (ICommander commander) |
Register a module commander. More... | |
void | UnregisterModuleCommander (string name) |
Unregister a module commander and all its commands More... | |
ICommander | GetCommander (string name) |
Get a module commander More... | |
Dictionary< string, ICommander > | GetCommanders () |
List< UUID > | GetFormatsOffered () |
void | RegisterModuleInterface< M > (M mod) |
Register an interface to a region module. This allows module methods to be called directly as well as via events. If there is already a module registered for this interface, it is not replaced (is this the best behaviour?) More... | |
void | UnregisterModuleInterface< M > (M mod) |
void | StackModuleInterface< M > (M mod) |
T | RequestModuleInterface< T > () |
For the given interface, retrieve the region module which implements it. More... | |
T[] | RequestModuleInterfaces< T > () |
For the given interface, retrieve an array of region modules that implement it. More... | |
void | AddCommand (IRegionModuleBase module, string command, string shorthelp, string longhelp, CommandDelegate callback) |
Call this from a region module to add a command to the OpenSim console. More... | |
void | AddCommand (string category, IRegionModuleBase module, string command, string shorthelp, string longhelp, CommandDelegate callback) |
Call this from a region module to add a command to the OpenSim console. More... | |
void | AddCommand (IRegionModuleBase module, string command, string shorthelp, string longhelp, string descriptivehelp, CommandDelegate callback) |
Call this from a region module to add a command to the OpenSim console. More... | |
void | AddCommand (string category, IRegionModuleBase module, string command, string shorthelp, string longhelp, string descriptivehelp, CommandDelegate callback) |
Call this from a region module to add a command to the OpenSim console. More... | |
virtual ISceneObject | DeserializeObject (string representation) |
virtual void | Start () |
Start the scene and associated scripts within it. More... | |
void | Restart () |
abstract bool | CheckClient (UUID agentID, System.Net.IPEndPoint ep) |
Public Attributes | |
ITerrainChannel | Heightmap |
ILandChannel | LandChannel |
Protected Member Functions | |
virtual IConfigSource | GetConfig () |
void | CheckAndAddAgentDataFormats (object mod) |
Protected Attributes | |
Dictionary< Type, List< object > > | ModuleInterfaces = new Dictionary<Type, List<object>>() |
List< UUID > | FormatsOffered = new List<UUID>() |
These two objects hold the information about any formats used by modules that hold agent specific data. More... | |
Dictionary< object, List< UUID > > | FormatsWanted = new Dictionary<object, List<UUID>>() |
Dictionary< string, object > | ModuleAPIMethods = new Dictionary<string, object>() |
Dictionary< string, ICommander > | m_moduleCommanders = new Dictionary<string, ICommander>() |
Dictionary< PCode, IEntityCreator > | m_entityCreators = new Dictionary<PCode, IEntityCreator>() |
uint | m_lastAllocatedLocalId = 720000 |
The last allocated local prim id. When a new local id is requested, the next number in the sequence is dispensed. More... | |
readonly ClientManager | m_clientManager = new ClientManager() |
EventManager | m_eventManager |
ScenePermissions | m_permissions |
RegionStatus | m_regStatus |
Properties | |
string | Name [get] |
IConfigSource | Config [get] |
Dictionary< string, IRegionModuleBase > | RegionModules [get] |
bool | LoginsEnabled [get, set] |
bool | Ready [get, set] |
float | TimeDilation [get] |
EventManager | EventManager [get] |
ScenePermissions | Permissions [get] |
RegionStatus | RegionStatus [get, set] |
virtual RegionInfo | RegionInfo [get, set] |
virtual bool | AllowScriptCrossings [get] |
Properties inherited from OpenSim.Framework.IScene | |
string | Name [get] |
The name of this scene. More... | |
RegionInfo | RegionInfo [get] |
RegionStatus | RegionStatus [get, set] |
IConfigSource | Config [get] |
bool | LoginsEnabled [get, set] |
Are logins enabled on this simulator? More... | |
bool | Ready [get, set] |
Is this region ready for use? More... | |
float | TimeDilation [get] |
bool | AllowScriptCrossings [get] |
Events | |
restart | OnRestart |
Events inherited from OpenSim.Framework.IScene | |
restart | OnRestart |
Definition at line 43 of file SceneBase.cs.
|
inline |
Definition at line 188 of file SceneBase.cs.
|
inline |
Call this from a region module to add a command to the OpenSim console.
mod | |
command | |
shorthelp | |
longhelp | |
callback |
Definition at line 540 of file SceneBase.cs.
|
inline |
Call this from a region module to add a command to the OpenSim console.
mod | The use of IRegionModuleBase is a cheap trick to get a different method signature, though all new modules should be using interfaces descended from IRegionModuleBase anyway. |
category | Category of the command. This is the section under which it will appear when the user asks for help |
command | |
shorthelp | |
longhelp | |
callback |
Definition at line 559 of file SceneBase.cs.
|
inline |
Call this from a region module to add a command to the OpenSim console.
mod | |
command | |
shorthelp | |
longhelp | |
descriptivehelp | |
callback |
Definition at line 574 of file SceneBase.cs.
|
inline |
Call this from a region module to add a command to the OpenSim console.
category | Category of the command. This is the section under which it will appear when the user asks for help |
mod | |
command | |
shorthelp | |
longhelp | |
descriptivehelp | |
callback |
Definition at line 596 of file SceneBase.cs.
|
pure virtual |
Add a new agent with an attached client. All agents except initial login clients will starts off as a child agent
client | |
type | The type of agent to add. |
Implements OpenSim.Framework.IScene.
Implemented in OpenSim.Region.Framework.Scenes.Scene.
|
inline |
Add a region-module to this scene. TODO: This will replace AddModule in the future.
name | |
module |
Definition at line 317 of file SceneBase.cs.
|
inline |
Returns a new unallocated local ID
Definition at line 299 of file SceneBase.cs.
|
inlineprotected |
Definition at line 384 of file SceneBase.cs.
|
pure virtual |
Implements OpenSim.Framework.IScene.
Implemented in OpenSim.Region.Framework.Scenes.Scene.
|
inlinevirtual |
Tidy before shutdown
Reimplemented in OpenSim.Region.Framework.Scenes.Scene.
Definition at line 281 of file SceneBase.cs.
|
pure virtual |
Tell a single agent to disconnect from the region.
agentID | |
force | Force the agent to close even if it might be in the middle of some other operation. You do not want to force unless you are absolutely sure that the agent is dead and a normal close is not working. |
Implements OpenSim.Framework.IScene.
Implemented in OpenSim.Region.Framework.Scenes.Scene.
|
inlinevirtual |
Implements OpenSim.Framework.IScene.
Reimplemented in OpenSim.Region.Framework.Scenes.Scene.
Definition at line 612 of file SceneBase.cs.
|
inline |
Get a module commander
name |
Definition at line 361 of file SceneBase.cs.
|
inline |
|
inlineprotectedvirtual |
Reimplemented in OpenSim.Region.Framework.Scenes.Scene.
Definition at line 66 of file SceneBase.cs.
|
inline |
|
inlinevirtual |
Implements OpenSim.Framework.IScene.
Reimplemented in OpenSim.Region.Framework.Scenes.Scene.
Definition at line 269 of file SceneBase.cs.
|
pure virtual |
Loads the World heightmap
Implemented in OpenSim.Region.Framework.Scenes.Scene.
|
pure virtual |
Implemented in OpenSim.Region.Framework.Scenes.Scene.
|
inline |
|
inline |
Register an interface to a region module. This allows module methods to be called directly as well as via events. If there is already a module registered for this interface, it is not replaced (is this the best behaviour?)
mod |
Implements OpenSim.Framework.IScene.
Definition at line 415 of file SceneBase.cs.
|
inline |
Definition at line 325 of file SceneBase.cs.
|
inline |
For the given interface, retrieve the region module which implements it.
Implements OpenSim.Framework.IScene.
Definition at line 501 of file SceneBase.cs.
|
inline |
For the given interface, retrieve an array of region modules that implement it.
Implements OpenSim.Framework.IScene.
Definition at line 514 of file SceneBase.cs.
|
inline |
Implements OpenSim.Framework.IScene.
Definition at line 626 of file SceneBase.cs.
|
inlinevirtual |
Send the region heightmap to the client
RemoteClient | Client to send to |
Definition at line 218 of file SceneBase.cs.
|
inline |
Implements OpenSim.Framework.IScene.
Definition at line 470 of file SceneBase.cs.
|
inlinevirtual |
Start the scene and associated scripts within it.
Implements OpenSim.Framework.IScene.
Reimplemented in OpenSim.Region.Framework.Scenes.Scene.
Definition at line 622 of file SceneBase.cs.
|
inline |
Implements OpenSim.Framework.IScene.
Definition at line 236 of file SceneBase.cs.
|
pure virtual |
Try to get a scene presence from the scene
agentID | |
scenePresence | null if there is no scene presence with the given agent id |
Implemented in OpenSim.Region.Framework.Scenes.Scene.
|
inline |
Unregister a module commander and all its commands
name |
Definition at line 346 of file SceneBase.cs.
|
inline |
Definition at line 443 of file SceneBase.cs.
|
pure virtual |
Called to update the scene loop by a number of frames and until shutdown.
frames | Number of frames to update. Exits on shutdown even if there are frames remaining. If -1 then updates until shutdown. |
Implemented in OpenSim.Region.Framework.Scenes.Scene.
|
protected |
These two objects hold the information about any formats used by modules that hold agent specific data.
Definition at line 89 of file SceneBase.cs.
|
protected |
Definition at line 90 of file SceneBase.cs.
ITerrainChannel OpenSim.Region.Framework.Scenes.SceneBase.Heightmap |
Definition at line 155 of file SceneBase.cs.
ILandChannel OpenSim.Region.Framework.Scenes.SceneBase.LandChannel |
Allows retrieval of land information for this scene.
Definition at line 160 of file SceneBase.cs.
|
protected |
Definition at line 112 of file SceneBase.cs.
|
protected |
Registered classes that are capable of creating entities.
Definition at line 102 of file SceneBase.cs.
|
protected |
Definition at line 170 of file SceneBase.cs.
|
protected |
The last allocated local prim id. When a new local id is requested, the next number in the sequence is dispensed.
Definition at line 108 of file SceneBase.cs.
|
protected |
The module commanders available from this scene
Definition at line 97 of file SceneBase.cs.
|
protected |
Definition at line 172 of file SceneBase.cs.
|
protected |
Definition at line 179 of file SceneBase.cs.
|
protected |
Definition at line 92 of file SceneBase.cs.
|
protected |
The module interfaces available from this scene.
Definition at line 83 of file SceneBase.cs.
|
get |
Definition at line 618 of file SceneBase.cs.
|
get |
Definition at line 62 of file SceneBase.cs.
|
get |
Manage events that occur in this scene (avatar movement, script rez, etc.). Commonly used by region modules to subscribe to scene events.
Definition at line 167 of file SceneBase.cs.
|
getset |
Definition at line 115 of file SceneBase.cs.
|
get |
Definition at line 59 of file SceneBase.cs.
|
get |
Definition at line 174 of file SceneBase.cs.
|
getset |
Definition at line 133 of file SceneBase.cs.
|
getset |
Definition at line 263 of file SceneBase.cs.
|
get |
All the region modules attached to this scene.
Definition at line 75 of file SceneBase.cs.
|
getset |
Definition at line 181 of file SceneBase.cs.
|
get |
Definition at line 151 of file SceneBase.cs.
restart OpenSim.Region.Framework.Scenes.SceneBase.OnRestart |
Definition at line 53 of file SceneBase.cs.