diff options
author | Melanie Thielker | 2010-06-11 17:08:18 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-06-11 17:08:18 +0200 |
commit | 8d5cec5e0d8edb9fafce4df3235c05dbc46b9240 (patch) | |
tree | 683a09357c3f7eeb675e84893f9096f113528d46 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs | |
parent | Clone cmGetAvatarList into osGetAvatarList for more generic use. (diff) | |
download | opensim-SC-8d5cec5e0d8edb9fafce4df3235c05dbc46b9240.zip opensim-SC-8d5cec5e0d8edb9fafce4df3235c05dbc46b9240.tar.gz opensim-SC-8d5cec5e0d8edb9fafce4df3235c05dbc46b9240.tar.bz2 opensim-SC-8d5cec5e0d8edb9fafce4df3235c05dbc46b9240.tar.xz |
Remove cmGetAvatarList()
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs index 4fb5c95..880ca1b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs | |||
@@ -113,31 +113,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
113 | } | 113 | } |
114 | 114 | ||
115 | /// <summary> | 115 | /// <summary> |
116 | /// Like osGetAgents but returns enough info for a radar | ||
117 | /// </summary> | ||
118 | /// <returns>Strided list of the UUID, position and name of each avatar in the region</returns> | ||
119 | public LSL_List cmGetAvatarList() | ||
120 | { | ||
121 | LSL_List result = new LSL_List(); | ||
122 | World.ForEachScenePresence(delegate (ScenePresence avatar) | ||
123 | { | ||
124 | if (avatar != null && avatar.UUID != m_host.OwnerID) | ||
125 | { | ||
126 | if (avatar.IsChildAgent == false) | ||
127 | { | ||
128 | if (avatar.PhysicsActor != null && avatar.PhysicsActor.Position != null) | ||
129 | { | ||
130 | result.Add(avatar.UUID); | ||
131 | result.Add(avatar.PhysicsActor.Position); | ||
132 | result.Add(avatar.Name); | ||
133 | } | ||
134 | } | ||
135 | } | ||
136 | }); | ||
137 | return result; | ||
138 | } | ||
139 | |||
140 | /// <summary> | ||
141 | /// Get the current Windlight scene | 116 | /// Get the current Windlight scene |
142 | /// </summary> | 117 | /// </summary> |
143 | /// <returns>List of windlight parameters</returns> | 118 | /// <returns>List of windlight parameters</returns> |