diff options
author | Justin Clarke Casey | 2008-10-14 14:43:46 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-10-14 14:43:46 +0000 |
commit | 3b9400bceaa9389489951b31322204bb26cab076 (patch) | |
tree | c818f31ef12f973e15502ec1d0eb8b8c7bd97738 /OpenSim/Region/Environment | |
parent | * Make KillObjectPackets reliable (diff) | |
download | opensim-SC_OLD-3b9400bceaa9389489951b31322204bb26cab076.zip opensim-SC_OLD-3b9400bceaa9389489951b31322204bb26cab076.tar.gz opensim-SC_OLD-3b9400bceaa9389489951b31322204bb26cab076.tar.bz2 opensim-SC_OLD-3b9400bceaa9389489951b31322204bb26cab076.tar.xz |
* refactor: rename SendKiPrimitive to SendKillObject since this appears more descriptive of what it actually does
Diffstat (limited to 'OpenSim/Region/Environment')
7 files changed, 14 insertions, 14 deletions
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs index ff9423f..edf5ec1 100644 --- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs +++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs | |||
@@ -260,7 +260,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
260 | // I thought that the DeleteGroup() function would handle all of this, but it doesn't. I'm not sure WHAT it handles. | 260 | // I thought that the DeleteGroup() function would handle all of this, but it doesn't. I'm not sure WHAT it handles. |
261 | ((SceneObjectGroup)scene.Entities[uuid]).DetachFromBackup(); | 261 | ((SceneObjectGroup)scene.Entities[uuid]).DetachFromBackup(); |
262 | scene.PhysicsScene.RemovePrim(((SceneObjectGroup)scene.Entities[uuid]).RootPart.PhysActor); | 262 | scene.PhysicsScene.RemovePrim(((SceneObjectGroup)scene.Entities[uuid]).RootPart.PhysActor); |
263 | scene.SendKiPrimitive(scene.Entities[uuid].LocalId); | 263 | scene.SendKillObject(scene.Entities[uuid].LocalId); |
264 | scene.m_innerScene.DeleteSceneObject(uuid, false); | 264 | scene.m_innerScene.DeleteSceneObject(uuid, false); |
265 | ((SceneObjectGroup)scene.Entities[uuid]).DeleteGroup(); | 265 | ((SceneObjectGroup)scene.Entities[uuid]).DeleteGroup(); |
266 | } | 266 | } |
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/MetaEntity.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/MetaEntity.cs index a494ff6..d6fca7b 100644 --- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/MetaEntity.cs +++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/MetaEntity.cs | |||
@@ -189,7 +189,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
189 | //This is important because we are not IN any database. | 189 | //This is important because we are not IN any database. |
190 | //m_Entity.FakeDeleteGroup(); | 190 | //m_Entity.FakeDeleteGroup(); |
191 | foreach (SceneObjectPart part in m_Entity.Children.Values) | 191 | foreach (SceneObjectPart part in m_Entity.Children.Values) |
192 | client.SendKiPrimitive(m_Entity.RegionHandle, part.LocalId); | 192 | client.SendKillObject(m_Entity.RegionHandle, part.LocalId); |
193 | } | 193 | } |
194 | 194 | ||
195 | /// <summary> | 195 | /// <summary> |
@@ -199,7 +199,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
199 | { | 199 | { |
200 | foreach (SceneObjectPart part in m_Entity.Children.Values) | 200 | foreach (SceneObjectPart part in m_Entity.Children.Values) |
201 | m_Entity.Scene.ClientManager.ForEachClient(delegate(IClientAPI controller) | 201 | m_Entity.Scene.ClientManager.ForEachClient(delegate(IClientAPI controller) |
202 | { controller.SendKiPrimitive(m_Entity.RegionHandle, part.LocalId); } | 202 | { controller.SendKillObject(m_Entity.RegionHandle, part.LocalId); } |
203 | ); | 203 | ); |
204 | } | 204 | } |
205 | 205 | ||
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs index a2d626e..35a6c2f 100644 --- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | |||
@@ -443,7 +443,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC | |||
443 | 443 | ||
444 | } | 444 | } |
445 | 445 | ||
446 | public virtual void SendKiPrimitive(ulong regionHandle, uint localID) | 446 | public virtual void SendKillObject(ulong regionHandle, uint localID) |
447 | { | 447 | { |
448 | } | 448 | } |
449 | 449 | ||
diff --git a/OpenSim/Region/Environment/Modules/World/TreePopulator/TreePopulatorModule.cs b/OpenSim/Region/Environment/Modules/World/TreePopulator/TreePopulatorModule.cs index bbd7b70..827540d 100644 --- a/OpenSim/Region/Environment/Modules/World/TreePopulator/TreePopulatorModule.cs +++ b/OpenSim/Region/Environment/Modules/World/TreePopulator/TreePopulatorModule.cs | |||
@@ -186,7 +186,7 @@ namespace OpenSim.Region.Environment.Modules.World.TreePopulator | |||
186 | 186 | ||
187 | m_scene.ForEachClient(delegate(IClientAPI controller) | 187 | m_scene.ForEachClient(delegate(IClientAPI controller) |
188 | { | 188 | { |
189 | controller.SendKiPrimitive(m_scene.RegionInfo.RegionHandle, | 189 | controller.SendKillObject(m_scene.RegionInfo.RegionHandle, |
190 | selectedTree.LocalId); | 190 | selectedTree.LocalId); |
191 | }); | 191 | }); |
192 | 192 | ||
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index b69520c..e95b1d7 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -2516,7 +2516,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2516 | { | 2516 | { |
2517 | try | 2517 | try |
2518 | { | 2518 | { |
2519 | client.SendKiPrimitive(avatar.RegionHandle, avatar.LocalId); | 2519 | client.SendKillObject(avatar.RegionHandle, avatar.LocalId); |
2520 | } | 2520 | } |
2521 | catch (NullReferenceException) | 2521 | catch (NullReferenceException) |
2522 | { | 2522 | { |
@@ -2589,7 +2589,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2589 | 2589 | ||
2590 | #region Entities | 2590 | #region Entities |
2591 | 2591 | ||
2592 | public void SendKiPrimitive(uint localID) | 2592 | public void SendKillObject(uint localID) |
2593 | { | 2593 | { |
2594 | SceneObjectPart part = GetSceneObjectPart(localID); | 2594 | SceneObjectPart part = GetSceneObjectPart(localID); |
2595 | if (part != null) // It is a prim | 2595 | if (part != null) // It is a prim |
@@ -2600,7 +2600,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2600 | return; | 2600 | return; |
2601 | } | 2601 | } |
2602 | } | 2602 | } |
2603 | Broadcast(delegate(IClientAPI client) { client.SendKiPrimitive(m_regionHandle, localID); }); | 2603 | Broadcast(delegate(IClientAPI client) { client.SendKillObject(m_regionHandle, localID); }); |
2604 | } | 2604 | } |
2605 | 2605 | ||
2606 | #endregion | 2606 | #endregion |
@@ -2620,7 +2620,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2620 | m_sceneGridService.OnExpectPrim += IncomingInterRegionPrimGroup; | 2620 | m_sceneGridService.OnExpectPrim += IncomingInterRegionPrimGroup; |
2621 | m_sceneGridService.OnRemoveKnownRegionFromAvatar += HandleRemoveKnownRegionsFromAvatar; | 2621 | m_sceneGridService.OnRemoveKnownRegionFromAvatar += HandleRemoveKnownRegionsFromAvatar; |
2622 | m_sceneGridService.OnLogOffUser += HandleLogOffUserFromGrid; | 2622 | m_sceneGridService.OnLogOffUser += HandleLogOffUserFromGrid; |
2623 | m_sceneGridService.KiPrimitive += SendKiPrimitive; | 2623 | m_sceneGridService.KiPrimitive += SendKillObject; |
2624 | m_sceneGridService.OnGetLandData += GetLandData; | 2624 | m_sceneGridService.OnGetLandData += GetLandData; |
2625 | } | 2625 | } |
2626 | 2626 | ||
@@ -2629,7 +2629,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2629 | /// </summary> | 2629 | /// </summary> |
2630 | public void UnRegisterRegionWithComms() | 2630 | public void UnRegisterRegionWithComms() |
2631 | { | 2631 | { |
2632 | m_sceneGridService.KiPrimitive -= SendKiPrimitive; | 2632 | m_sceneGridService.KiPrimitive -= SendKillObject; |
2633 | m_sceneGridService.OnLogOffUser -= HandleLogOffUserFromGrid; | 2633 | m_sceneGridService.OnLogOffUser -= HandleLogOffUserFromGrid; |
2634 | m_sceneGridService.OnRemoveKnownRegionFromAvatar -= HandleRemoveKnownRegionsFromAvatar; | 2634 | m_sceneGridService.OnRemoveKnownRegionFromAvatar -= HandleRemoveKnownRegionsFromAvatar; |
2635 | m_sceneGridService.OnExpectPrim -= IncomingInterRegionPrimGroup; | 2635 | m_sceneGridService.OnExpectPrim -= IncomingInterRegionPrimGroup; |
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 2c3e767..37f3caf 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -750,7 +750,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
750 | // | 750 | // |
751 | if (IsSelected) | 751 | if (IsSelected) |
752 | { | 752 | { |
753 | m_scene.SendKiPrimitive(m_rootPart.LocalId); | 753 | m_scene.SendKillObject(m_rootPart.LocalId); |
754 | } | 754 | } |
755 | 755 | ||
756 | IsSelected = false; // fudge.... | 756 | IsSelected = false; // fudge.... |
@@ -985,7 +985,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
985 | } | 985 | } |
986 | 986 | ||
987 | if (m_rootPart != null && part == m_rootPart) | 987 | if (m_rootPart != null && part == m_rootPart) |
988 | avatars[i].ControllingClient.SendKiPrimitive(m_regionHandle, part.LocalId); | 988 | avatars[i].ControllingClient.SendKillObject(m_regionHandle, part.LocalId); |
989 | } | 989 | } |
990 | } | 990 | } |
991 | 991 | ||
@@ -1011,7 +1011,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1011 | } | 1011 | } |
1012 | 1012 | ||
1013 | if (m_rootPart != null && part == m_rootPart) | 1013 | if (m_rootPart != null && part == m_rootPart) |
1014 | avatars[i].ControllingClient.SendKiPrimitive(m_regionHandle, part.LocalId); | 1014 | avatars[i].ControllingClient.SendKillObject(m_regionHandle, part.LocalId); |
1015 | } | 1015 | } |
1016 | } | 1016 | } |
1017 | } | 1017 | } |
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 8120c62..963c71b 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -2068,7 +2068,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2068 | 2068 | ||
2069 | CrossAttachmentsIntoNewRegion(neighbourHandle); | 2069 | CrossAttachmentsIntoNewRegion(neighbourHandle); |
2070 | 2070 | ||
2071 | m_scene.SendKiPrimitive(m_localId); | 2071 | m_scene.SendKillObject(m_localId); |
2072 | 2072 | ||
2073 | m_scene.NotifyMyCoarseLocationChange(); | 2073 | m_scene.NotifyMyCoarseLocationChange(); |
2074 | // the user may change their profile information in other region, | 2074 | // the user may change their profile information in other region, |