aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/EventManager.cs18
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs3
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs2
3 files changed, 20 insertions, 3 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;
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index fe8cada..71c5b18 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1582,6 +1582,7 @@ namespace OpenSim.Region.Environment.Scenes
1582 1582
1583 CommsManager.UserProfileCacheService.AddNewUser(client.AgentId); 1583 CommsManager.UserProfileCacheService.AddNewUser(client.AgentId);
1584 } 1584 }
1585 EventManager.TriggerOnNewClient(client);
1585 } 1586 }
1586 1587
1587 protected virtual void SubscribeToClientEvents(IClientAPI client) 1588 protected virtual void SubscribeToClientEvents(IClientAPI client)
@@ -1660,7 +1661,7 @@ namespace OpenSim.Region.Environment.Scenes
1660 client.OnUndo += m_innerScene.HandleUndo; 1661 client.OnUndo += m_innerScene.HandleUndo;
1661 client.OnObjectGroupRequest += m_innerScene.HandleObjectGroupUpdate; 1662 client.OnObjectGroupRequest += m_innerScene.HandleObjectGroupUpdate;
1662 1663
1663 EventManager.TriggerOnNewClient(client); 1664 // EventManager.TriggerOnNewClient(client);
1664 } 1665 }
1665 1666
1666 public virtual void TeleportClientHome(LLUUID AgentId, IClientAPI client) 1667 public virtual void TeleportClientHome(LLUUID AgentId, IClientAPI client)
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 103068c..a692b33 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -590,6 +590,8 @@ namespace OpenSim.Region.Environment.Scenes
590 //{ 590 //{
591 m_scene.SendAllSceneObjectsToClient(this); 591 m_scene.SendAllSceneObjectsToClient(this);
592 592
593 m_scene.EventManager.TriggerOnMakeRootAgent(this);
594
593 //m_gotAllObjectsInScene = true; 595 //m_gotAllObjectsInScene = true;
594 //} 596 //}
595 } 597 }