diff options
author | mingchen | 2007-07-14 17:01:15 +0000 |
---|---|---|
committer | mingchen | 2007-07-14 17:01:15 +0000 |
commit | bf32020693b62685bc15f2e56cd2b717f4e170a7 (patch) | |
tree | 80256e8f0217533ecfd4aa6fa7f44e7c3ac49ed5 /OpenSim/Region/Environment/Scenes/Scene.cs | |
parent | * SimpleApp finally doing something fun. :) (diff) | |
download | opensim-SC_OLD-bf32020693b62685bc15f2e56cd2b717f4e170a7.zip opensim-SC_OLD-bf32020693b62685bc15f2e56cd2b717f4e170a7.tar.gz opensim-SC_OLD-bf32020693b62685bc15f2e56cd2b717f4e170a7.tar.bz2 opensim-SC_OLD-bf32020693b62685bc15f2e56cd2b717f4e170a7.tar.xz |
*Removed ParcelManager from SceneObject and Primitive and replaced with events in EventManager
*Prim count and sim-wide prim count correctly reflect object bonus multiplier
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 9565c02..03e7a41 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -136,6 +136,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
136 | m_scriptManager = new ScriptManager(this); | 136 | m_scriptManager = new ScriptManager(this); |
137 | m_eventManager = new EventManager(); | 137 | m_eventManager = new EventManager(); |
138 | 138 | ||
139 | m_eventManager.OnParcelPrimCountTainted += new EventManager.OnParcelPrimCountTaintedDelegate(m_parcelManager.setPrimsTainted); | ||
140 | m_eventManager.OnParcelPrimCountAdd += new EventManager.OnParcelPrimCountAddDelegate(m_parcelManager.addPrimToParcelCounts); | ||
141 | |||
139 | MainLog.Instance.Verbose("World.cs - creating new entitities instance"); | 142 | MainLog.Instance.Verbose("World.cs - creating new entitities instance"); |
140 | Entities = new Dictionary<LLUUID, EntityBase>(); | 143 | Entities = new Dictionary<LLUUID, EntityBase>(); |
141 | Avatars = new Dictionary<LLUUID, ScenePresence>(); | 144 | Avatars = new Dictionary<LLUUID, ScenePresence>(); |
@@ -453,7 +456,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
453 | /// <param name="ownerID"></param> | 456 | /// <param name="ownerID"></param> |
454 | public void AddNewPrim(LLUUID ownerID, LLVector3 pos, PrimitiveBaseShape shape) | 457 | public void AddNewPrim(LLUUID ownerID, LLVector3 pos, PrimitiveBaseShape shape) |
455 | { | 458 | { |
456 | SceneObject sceneOb = new SceneObject(this, ownerID, this.PrimIDAllocate(), pos, shape); | 459 | SceneObject sceneOb = new SceneObject(this, m_eventManager, ownerID, this.PrimIDAllocate(), pos, shape); |
457 | AddNewEntity(sceneOb); | 460 | AddNewEntity(sceneOb); |
458 | } | 461 | } |
459 | 462 | ||