diff options
author | Dan Lake | 2011-11-03 17:53:51 -0700 |
---|---|---|
committer | Dan Lake | 2011-11-03 17:53:51 -0700 |
commit | b8d50b10fbb03ed8c8a9aac94564c354559c3bb0 (patch) | |
tree | 46b0b79fee603edec1888af2f31935d07f8b9262 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | Renamed ForEachRootScenePresence to ForEachAvatar. Cleaned up calls to (diff) | |
download | opensim-SC-b8d50b10fbb03ed8c8a9aac94564c354559c3bb0.zip opensim-SC-b8d50b10fbb03ed8c8a9aac94564c354559c3bb0.tar.gz opensim-SC-b8d50b10fbb03ed8c8a9aac94564c354559c3bb0.tar.bz2 opensim-SC-b8d50b10fbb03ed8c8a9aac94564c354559c3bb0.tar.xz |
Rename ForEachAvatar back to ForEachScenePresence. The other changes
from previous commit which sort out which iterator is used are left
intact. A discussion is needed as to what constitutes an avatar vs a
ScenePresence.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index d2ddcef..5ed8c47 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3740,7 +3740,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3740 | m_host.AddScriptLPS(1); | 3740 | m_host.AddScriptLPS(1); |
3741 | List<UUID> keytable = new List<UUID>(); | 3741 | List<UUID> keytable = new List<UUID>(); |
3742 | // parse for sitting avatare-uuids | 3742 | // parse for sitting avatare-uuids |
3743 | World.ForEachAvatar(delegate(ScenePresence presence) | 3743 | World.ForEachRootScenePresence(delegate(ScenePresence presence) |
3744 | { | 3744 | { |
3745 | if (presence.ParentID != 0 && m_host.ParentGroup.HasChildPrim(presence.ParentID)) | 3745 | if (presence.ParentID != 0 && m_host.ParentGroup.HasChildPrim(presence.ParentID)) |
3746 | keytable.Add(presence.UUID); | 3746 | keytable.Add(presence.UUID); |
@@ -3802,7 +3802,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3802 | m_host.AddScriptLPS(1); | 3802 | m_host.AddScriptLPS(1); |
3803 | // parse for sitting avatare-names | 3803 | // parse for sitting avatare-names |
3804 | List<String> nametable = new List<String>(); | 3804 | List<String> nametable = new List<String>(); |
3805 | World.ForEachAvatar(delegate(ScenePresence presence) | 3805 | World.ForEachRootScenePresence(delegate(ScenePresence presence) |
3806 | { | 3806 | { |
3807 | if (presence.ParentID != 0 && m_host.ParentGroup.HasChildPrim(presence.ParentID)) | 3807 | if (presence.ParentID != 0 && m_host.ParentGroup.HasChildPrim(presence.ParentID)) |
3808 | nametable.Add(presence.ControllingClient.Name); | 3808 | nametable.Add(presence.ControllingClient.Name); |
@@ -7611,7 +7611,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7611 | { | 7611 | { |
7612 | m_host.AddScriptLPS(1); | 7612 | m_host.AddScriptLPS(1); |
7613 | int avatarCount = 0; | 7613 | int avatarCount = 0; |
7614 | World.ForEachAvatar(delegate(ScenePresence presence) | 7614 | World.ForEachRootScenePresence(delegate(ScenePresence presence) |
7615 | { | 7615 | { |
7616 | if (presence.ParentID != 0 && m_host.ParentGroup.HasChildPrim(presence.ParentID)) | 7616 | if (presence.ParentID != 0 && m_host.ParentGroup.HasChildPrim(presence.ParentID)) |
7617 | avatarCount++; | 7617 | avatarCount++; |
@@ -9379,7 +9379,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
9379 | landObject.SetMediaUrl(url); | 9379 | landObject.SetMediaUrl(url); |
9380 | 9380 | ||
9381 | // now send to all (non-child) agents in the parcel | 9381 | // now send to all (non-child) agents in the parcel |
9382 | World.ForEachAvatar(delegate(ScenePresence sp) | 9382 | World.ForEachRootScenePresence(delegate(ScenePresence sp) |
9383 | { | 9383 | { |
9384 | if (sp.currentParcelUUID == landData.GlobalID) | 9384 | if (sp.currentParcelUUID == landData.GlobalID) |
9385 | { | 9385 | { |
@@ -9412,7 +9412,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
9412 | if (presence == null) | 9412 | if (presence == null) |
9413 | { | 9413 | { |
9414 | // send to all (non-child) agents in the parcel | 9414 | // send to all (non-child) agents in the parcel |
9415 | World.ForEachAvatar(delegate(ScenePresence sp) | 9415 | World.ForEachRootScenePresence(delegate(ScenePresence sp) |
9416 | { | 9416 | { |
9417 | if (sp.currentParcelUUID == landData.GlobalID) | 9417 | if (sp.currentParcelUUID == landData.GlobalID) |
9418 | { | 9418 | { |
@@ -10527,7 +10527,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
10527 | 10527 | ||
10528 | if (checkAgents) | 10528 | if (checkAgents) |
10529 | { | 10529 | { |
10530 | World.ForEachAvatar(delegate(ScenePresence sp) | 10530 | World.ForEachRootScenePresence(delegate(ScenePresence sp) |
10531 | { | 10531 | { |
10532 | if (sp.AbsolutePosition.ApproxEquals(posToCheck, sp.PhysicsActor.Size.X)) | 10532 | if (sp.AbsolutePosition.ApproxEquals(posToCheck, sp.PhysicsActor.Size.X)) |
10533 | { | 10533 | { |