diff options
* Started renaming world to Scene
* Update and UpdateMovement now first stores array to avoid collection update exceptions
* Ignored some bins
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Primitive.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Primitive.cs | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Primitive.cs b/OpenSim/Region/Environment/Scenes/Primitive.cs index 93e4959..ce5c327 100644 --- a/OpenSim/Region/Environment/Scenes/Primitive.cs +++ b/OpenSim/Region/Environment/Scenes/Primitive.cs | |||
@@ -138,22 +138,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
138 | 138 | ||
139 | #region Constructors | 139 | #region Constructors |
140 | 140 | ||
141 | /// <summary> | 141 | public Primitive(ulong regionHandle, Scene scene, LLUUID ownerID, uint localID, bool isRoot, EntityBase parent, |
142 | /// | ||
143 | /// </summary> | ||
144 | /// <param name="regionHandle"></param> | ||
145 | /// <param name="world"></param> | ||
146 | /// <param name="addPacket"></param> | ||
147 | /// <param name="ownerID"></param> | ||
148 | /// <param name="localID"></param> | ||
149 | /// <param name="isRoot"></param> | ||
150 | /// <param name="parent"></param> | ||
151 | /// <param name="rootObject"></param> | ||
152 | public Primitive(ulong regionHandle, Scene world, LLUUID ownerID, uint localID, bool isRoot, EntityBase parent, | ||
153 | SceneObject rootObject, PrimitiveBaseShape shape, LLVector3 pos) | 142 | SceneObject rootObject, PrimitiveBaseShape shape, LLVector3 pos) |
154 | { | 143 | { |
155 | m_regionHandle = regionHandle; | 144 | m_regionHandle = regionHandle; |
156 | m_world = world; | 145 | m_scene = scene; |
157 | m_inventoryItems = new Dictionary<LLUUID, InventoryItem>(); | 146 | m_inventoryItems = new Dictionary<LLUUID, InventoryItem>(); |
158 | m_Parent = parent; | 147 | m_Parent = parent; |
159 | m_isRootPrim = isRoot; | 148 | m_isRootPrim = isRoot; |
@@ -163,7 +152,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
163 | 152 | ||
164 | Rotation = Quaternion.Identity; | 153 | Rotation = Quaternion.Identity; |
165 | 154 | ||
166 | m_world.AcknowledgeNewPrim(this); | 155 | m_scene.AcknowledgeNewPrim(this); |
167 | 156 | ||
168 | OnPrimCountTainted(); | 157 | OnPrimCountTainted(); |
169 | } | 158 | } |
@@ -202,10 +191,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
202 | dupe.m_children = new List<EntityBase>(); | 191 | dupe.m_children = new List<EntityBase>(); |
203 | dupe.m_Shape = m_Shape.Copy(); | 192 | dupe.m_Shape = m_Shape.Copy(); |
204 | dupe.m_regionHandle = m_regionHandle; | 193 | dupe.m_regionHandle = m_regionHandle; |
205 | dupe.m_world = m_world; | 194 | dupe.m_scene = m_scene; |
206 | 195 | ||
207 | 196 | ||
208 | uint newLocalID = m_world.PrimIDAllocate(); | 197 | uint newLocalID = m_scene.PrimIDAllocate(); |
209 | dupe.m_uuid = LLUUID.Random(); | 198 | dupe.m_uuid = LLUUID.Random(); |
210 | dupe.LocalId = newLocalID; | 199 | dupe.LocalId = newLocalID; |
211 | 200 | ||
@@ -225,7 +214,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
225 | dupe.m_pos = new LLVector3(m_pos.X, m_pos.Y, m_pos.Z); | 214 | dupe.m_pos = new LLVector3(m_pos.X, m_pos.Y, m_pos.Z); |
226 | 215 | ||
227 | rootParent.AddChildToList(dupe); | 216 | rootParent.AddChildToList(dupe); |
228 | m_world.AcknowledgeNewPrim(dupe); | 217 | m_scene.AcknowledgeNewPrim(dupe); |
229 | dupe.TriggerOnPrimCountTainted(); | 218 | dupe.TriggerOnPrimCountTainted(); |
230 | 219 | ||
231 | 220 | ||
@@ -327,7 +316,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
327 | m_children.Add(linkObject.rootPrimitive); | 316 | m_children.Add(linkObject.rootPrimitive); |
328 | linkObject.rootPrimitive.SetNewParent(this, m_RootParent); | 317 | linkObject.rootPrimitive.SetNewParent(this, m_RootParent); |
329 | 318 | ||
330 | m_world.DeleteEntity(linkObject.rootUUID); | 319 | m_scene.DeleteEntity(linkObject.rootUUID); |
331 | linkObject.DeleteAllChildren(); | 320 | linkObject.DeleteAllChildren(); |
332 | 321 | ||
333 | OnPrimCountTainted(); | 322 | OnPrimCountTainted(); |
@@ -676,7 +665,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
676 | /// </summary> | 665 | /// </summary> |
677 | public void SendFullUpdateToAllClients() | 666 | public void SendFullUpdateToAllClients() |
678 | { | 667 | { |
679 | List<ScenePresence> avatars = m_world.RequestAvatarList(); | 668 | List<ScenePresence> avatars = m_scene.RequestAvatarList(); |
680 | for (int i = 0; i < avatars.Count; i++) | 669 | for (int i = 0; i < avatars.Count; i++) |
681 | { | 670 | { |
682 | SendFullUpdateToClient(avatars[i].ControllingClient); | 671 | SendFullUpdateToClient(avatars[i].ControllingClient); |
@@ -721,7 +710,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
721 | /// </summary> | 710 | /// </summary> |
722 | public void SendTerseUpdateToALLClients() | 711 | public void SendTerseUpdateToALLClients() |
723 | { | 712 | { |
724 | List<ScenePresence> avatars = m_world.RequestAvatarList(); | 713 | List<ScenePresence> avatars = m_scene.RequestAvatarList(); |
725 | for (int i = 0; i < avatars.Count; i++) | 714 | for (int i = 0; i < avatars.Count; i++) |
726 | { | 715 | { |
727 | SendTerseUpdateToClient(avatars[i].ControllingClient); | 716 | SendTerseUpdateToClient(avatars[i].ControllingClient); |