diff options
Start of trying to make Region/Scene more modular.
Added preliminary IRegionModule interface.
Also have a work in progress way of Modules registering optional API methods (kind of like Apache optional functions). But there must be a cleaner/nicer way in c# of doing these than the current way.
Added three work in progress modules: ChatModule (simple handles in world chat, but by moving this to a module, we could support other types of chat modules, ie like a irc - opensim bridge module. ) , AvatarProfilesModule and XferModule.
Moved most of the code from Scene.ModifyTerrain() into the BasicTerrain library, as the start of trying to make that more modular.
Stopped Child agents showing up as part of the "show users" command.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneEvents.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 3c6b277..a86a1bc 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs | |||
@@ -14,6 +14,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
14 | public delegate void OnBackupDelegate(Interfaces.IRegionDataStore datastore); | 14 | public delegate void OnBackupDelegate(Interfaces.IRegionDataStore datastore); |
15 | public event OnBackupDelegate OnBackup; | 15 | public event OnBackupDelegate OnBackup; |
16 | 16 | ||
17 | public delegate void OnNewClientDelegate(IClientAPI client); | ||
18 | public event OnNewClientDelegate OnNewClient; | ||
19 | |||
17 | public delegate void OnNewPresenceDelegate(ScenePresence presence); | 20 | public delegate void OnNewPresenceDelegate(ScenePresence presence); |
18 | public event OnNewPresenceDelegate OnNewPresence; | 21 | public event OnNewPresenceDelegate OnNewPresence; |
19 | 22 | ||
@@ -63,6 +66,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
63 | } | 66 | } |
64 | } | 67 | } |
65 | 68 | ||
69 | public void TriggerOnNewClient(IClientAPI client) | ||
70 | { | ||
71 | if (OnNewClient != null) | ||
72 | OnNewClient(client); | ||
73 | } | ||
74 | |||
66 | public void TriggerOnNewPresence(ScenePresence presence) | 75 | public void TriggerOnNewPresence(ScenePresence presence) |
67 | { | 76 | { |
68 | if (OnNewPresence != null) | 77 | if (OnNewPresence != null) |