diff options
author | mingchen | 2007-07-16 19:40:25 +0000 |
---|---|---|
committer | mingchen | 2007-07-16 19:40:25 +0000 |
commit | 2873b82b788244852fd1dad3a747f3ba33a73be5 (patch) | |
tree | 1a447a3e880743860a7fb4e4f726fedf816bf9d6 /OpenSim/Region/Environment/Scenes | |
parent | *Renamed ParcelManager to LandManager (diff) | |
download | opensim-SC_OLD-2873b82b788244852fd1dad3a747f3ba33a73be5.zip opensim-SC_OLD-2873b82b788244852fd1dad3a747f3ba33a73be5.tar.gz opensim-SC_OLD-2873b82b788244852fd1dad3a747f3ba33a73be5.tar.bz2 opensim-SC_OLD-2873b82b788244852fd1dad3a747f3ba33a73be5.tar.xz |
*Renamed everything Parcels and ParcelData to Land and LandData
*Added missing files (I hope)
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 24 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObject.cs | 2 |
2 files changed, 13 insertions, 13 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 5689308..917f6c4 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -45,7 +45,7 @@ using OpenSim.Region.Terrain; | |||
45 | using Caps = OpenSim.Region.Capabilities.Caps; | 45 | using Caps = OpenSim.Region.Capabilities.Caps; |
46 | using Timer = System.Timers.Timer; | 46 | using Timer = System.Timers.Timer; |
47 | 47 | ||
48 | using OpenSim.Region.Environment.Parcels; | 48 | using OpenSim.Region.Environment.LandManagement; |
49 | 49 | ||
50 | namespace OpenSim.Region.Environment.Scenes | 50 | namespace OpenSim.Region.Environment.Scenes |
51 | { | 51 | { |
@@ -63,7 +63,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
63 | private uint _primCount = 702000; | 63 | private uint _primCount = 702000; |
64 | private System.Threading.Mutex _primAllocateMutex = new Mutex(false); | 64 | private System.Threading.Mutex _primAllocateMutex = new Mutex(false); |
65 | private int storageCount; | 65 | private int storageCount; |
66 | private int parcelPrimCheckCount; | 66 | private int landPrimCheckCount; |
67 | private Mutex updateLock; | 67 | private Mutex updateLock; |
68 | 68 | ||
69 | protected AuthenticateSessionsBase authenticateHandler; | 69 | protected AuthenticateSessionsBase authenticateHandler; |
@@ -146,7 +146,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
146 | m_scriptManager = new ScriptManager(this); | 146 | m_scriptManager = new ScriptManager(this); |
147 | m_eventManager = new EventManager(); | 147 | m_eventManager = new EventManager(); |
148 | 148 | ||
149 | m_eventManager.OnParcelPrimCountAdd += new EventManager.OnParcelPrimCountAddDelegate(m_LandManager.addPrimToParcelCounts); | 149 | m_eventManager.OnParcelPrimCountAdd += new EventManager.OnParcelPrimCountAddDelegate(m_LandManager.addPrimToLandPrimCounts); |
150 | 150 | ||
151 | MainLog.Instance.Verbose("World.cs - creating new entitities instance"); | 151 | MainLog.Instance.Verbose("World.cs - creating new entitities instance"); |
152 | Entities = new Dictionary<LLUUID, EntityBase>(); | 152 | Entities = new Dictionary<LLUUID, EntityBase>(); |
@@ -244,14 +244,14 @@ namespace OpenSim.Region.Environment.Scenes | |||
244 | storageCount = 0; | 244 | storageCount = 0; |
245 | } | 245 | } |
246 | 246 | ||
247 | this.parcelPrimCheckCount++; | 247 | this.landPrimCheckCount++; |
248 | if (this.parcelPrimCheckCount > 50) //check every 5 seconds for tainted prims | 248 | if (this.landPrimCheckCount > 50) //check every 5 seconds for tainted prims |
249 | { | 249 | { |
250 | if (m_LandManager.parcelPrimCountTainted) | 250 | if (m_LandManager.landPrimCountTainted) |
251 | { | 251 | { |
252 | //Perform parcel update of prim count | 252 | //Perform land update of prim count |
253 | performParcelPrimCountUpdate(); | 253 | performParcelPrimCountUpdate(); |
254 | this.parcelPrimCheckCount = 0; | 254 | this.landPrimCheckCount = 0; |
255 | } | 255 | } |
256 | } | 256 | } |
257 | 257 | ||
@@ -513,7 +513,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
513 | { | 513 | { |
514 | if (this.Entities.ContainsKey(sceneObject.rootUUID)) | 514 | if (this.Entities.ContainsKey(sceneObject.rootUUID)) |
515 | { | 515 | { |
516 | m_LandManager.removePrimFromParcelCounts(sceneObject); | 516 | m_LandManager.removePrimFromLandPrimCounts(sceneObject); |
517 | this.Entities.Remove(sceneObject.rootUUID); | 517 | this.Entities.Remove(sceneObject.rootUUID); |
518 | m_LandManager.setPrimsTainted(); | 518 | m_LandManager.setPrimsTainted(); |
519 | } | 519 | } |
@@ -910,10 +910,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
910 | 910 | ||
911 | public void performParcelPrimCountUpdate() | 911 | public void performParcelPrimCountUpdate() |
912 | { | 912 | { |
913 | m_LandManager.resetAllParcelPrimCounts(); | 913 | m_LandManager.resetAllLandPrimCounts(); |
914 | m_eventManager.TriggerParcelPrimCountUpdate(); | 914 | m_eventManager.TriggerParcelPrimCountUpdate(); |
915 | m_LandManager.finalizeParcelPrimCountUpdate(); | 915 | m_LandManager.finalizeLandPrimCountUpdate(); |
916 | m_LandManager.parcelPrimCountTainted = false; | 916 | m_LandManager.landPrimCountTainted = false; |
917 | } | 917 | } |
918 | #endregion | 918 | #endregion |
919 | 919 | ||
diff --git a/OpenSim/Region/Environment/Scenes/SceneObject.cs b/OpenSim/Region/Environment/Scenes/SceneObject.cs index 43d41e6..f0b25ce 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObject.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObject.cs | |||
@@ -132,7 +132,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
132 | } | 132 | } |
133 | 133 | ||
134 | /// <summary> | 134 | /// <summary> |
135 | /// Sends my primitive info to the parcel manager for it to keep tally of all of the prims! | 135 | /// Sends my primitive info to the land manager for it to keep tally of all of the prims! |
136 | /// </summary> | 136 | /// </summary> |
137 | private void ProcessParcelPrimCountUpdate() | 137 | private void ProcessParcelPrimCountUpdate() |
138 | { | 138 | { |