aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.Region/Scenes/Scene.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-06-27 06:14:15 +0000
committerAdam Frisby2007-06-27 06:14:15 +0000
commita1e6fff14fa5354ef5719e0eacd280d2f1aaa727 (patch)
treefbb290a825836c7297b8dfb4a49683ec377b44c4 /OpenSim/OpenSim.Region/Scenes/Scene.cs
parent* Renamed new event manager "SceneEvents" to "EventManager" (diff)
downloadopensim-SC_OLD-a1e6fff14fa5354ef5719e0eacd280d2f1aaa727.zip
opensim-SC_OLD-a1e6fff14fa5354ef5719e0eacd280d2f1aaa727.tar.gz
opensim-SC_OLD-a1e6fff14fa5354ef5719e0eacd280d2f1aaa727.tar.bz2
opensim-SC_OLD-a1e6fff14fa5354ef5719e0eacd280d2f1aaa727.tar.xz
The following events now work:
* OnFrame * OnNewPresence * OnNewPrimitive * OnRemovePresence
Diffstat (limited to 'OpenSim/OpenSim.Region/Scenes/Scene.cs')
-rw-r--r--OpenSim/OpenSim.Region/Scenes/Scene.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs
index fd78fd6..bf2244e 100644
--- a/OpenSim/OpenSim.Region/Scenes/Scene.cs
+++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs
@@ -481,19 +481,17 @@ namespace OpenSim.Region.Scenes
481 { 481 {
482 try 482 try
483 { 483 {
484
485 // MainLog.Instance.Notice("World.cs: AddNewPrim() - Creating new prim");
486
487 Primitive prim = new Primitive(m_regionHandle, this, addPacket, ownerID, this._primCount); 484 Primitive prim = new Primitive(m_regionHandle, this, addPacket, ownerID, this._primCount);
488 485
489 this.Entities.Add(prim.uuid, prim); 486 this.Entities.Add(prim.uuid, prim);
490 this._primCount++; 487 this._primCount++;
488
489 // Trigger event for listeners
490 eventManager.TriggerOnNewPrimitive(prim);
491 } 491 }
492 catch (Exception e) 492 catch (Exception e)
493 { 493 {
494 494 OpenSim.Framework.Console.MainLog.Instance.Warn("World.cs: AddNewPrim() - Failed with exception " + e.ToString());
495 // MainLog.Instance.Warn("World.cs: AddNewPrim() - Failed with exception " + e.ToString());
496
497 } 495 }
498 } 496 }
499 497
@@ -583,6 +581,8 @@ namespace OpenSim.Region.Scenes
583 /// <param name="agentID"></param> 581 /// <param name="agentID"></param>
584 public override void RemoveClient(LLUUID agentID) 582 public override void RemoveClient(LLUUID agentID)
585 { 583 {
584 eventManager.TriggerOnRemovePresence(agentID);
585
586 return; 586 return;
587 } 587 }
588 #endregion 588 #endregion