diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/EventManager.cs | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EventManager.cs b/OpenSim/Region/Environment/Scenes/EventManager.cs index f8eef82..6c714f8 100644 --- a/OpenSim/Region/Environment/Scenes/EventManager.cs +++ b/OpenSim/Region/Environment/Scenes/EventManager.cs | |||
@@ -156,7 +156,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
156 | 156 | ||
157 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; | 157 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; |
158 | 158 | ||
159 | public event OnNewPresenceDelegate OnMakeChildAgent; | 159 | public delegate void OnMakeChildAgentDelegate(ScenePresence presence); |
160 | public event OnMakeChildAgentDelegate OnMakeChildAgent; | ||
161 | |||
162 | public delegate void OnMakeRootAgentDelegate(ScenePresence presence); | ||
163 | public event OnMakeRootAgentDelegate OnMakeRootAgent; | ||
160 | 164 | ||
161 | public delegate void NewInventoryItemUploadComplete(LLUUID avatarID, LLUUID assetID, string name, int userlevel); | 165 | public delegate void NewInventoryItemUploadComplete(LLUUID avatarID, LLUUID assetID, string name, int userlevel); |
162 | 166 | ||
@@ -307,7 +311,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
307 | private NewGridInstantMessage handlerGridInstantMessageToIM = null; //OnGridInstantMessageToIMModule; | 311 | private NewGridInstantMessage handlerGridInstantMessageToIM = null; //OnGridInstantMessageToIMModule; |
308 | private NewGridInstantMessage handlerGridInstantMessageToFriends = null; //OnGridInstantMessageToFriendsModule; | 312 | private NewGridInstantMessage handlerGridInstantMessageToFriends = null; //OnGridInstantMessageToFriendsModule; |
309 | private ClientClosed handlerClientClosed = null; //OnClientClosed; | 313 | private ClientClosed handlerClientClosed = null; //OnClientClosed; |
310 | private OnNewPresenceDelegate handlerMakeChildAgent = null; //OnMakeChildAgent; | 314 | private OnMakeChildAgentDelegate handlerMakeChildAgent = null; //OnMakeChildAgent; |
315 | private OnMakeRootAgentDelegate handlerMakeRootAgent = null; //OnMakeRootAgent; | ||
311 | private OnTerrainTickDelegate handlerTerrainTick = null; // OnTerainTick; | 316 | private OnTerrainTickDelegate handlerTerrainTick = null; // OnTerainTick; |
312 | private RegisterCapsEvent handlerRegisterCaps = null; // OnRegisterCaps; | 317 | private RegisterCapsEvent handlerRegisterCaps = null; // OnRegisterCaps; |
313 | private DeregisterCapsEvent handlerDeregisterCaps = null; // OnDeregisterCaps; | 318 | private DeregisterCapsEvent handlerDeregisterCaps = null; // OnDeregisterCaps; |
@@ -574,6 +579,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
574 | } | 579 | } |
575 | } | 580 | } |
576 | 581 | ||
582 | public void TriggerOnMakeRootAgent(ScenePresence presence) | ||
583 | { | ||
584 | handlerMakeRootAgent = OnMakeRootAgent; | ||
585 | if (handlerMakeRootAgent != null) | ||
586 | { | ||
587 | handlerMakeRootAgent(presence); | ||
588 | } | ||
589 | } | ||
590 | |||
577 | public void TriggerOnRegisterCaps(LLUUID agentID, Caps caps) | 591 | public void TriggerOnRegisterCaps(LLUUID agentID, Caps caps) |
578 | { | 592 | { |
579 | handlerRegisterCaps = OnRegisterCaps; | 593 | handlerRegisterCaps = OnRegisterCaps; |