Remove cmGetAvatarList()
parent
b3cf5ccf6d
commit
8d5cec5e0d
|
@ -112,31 +112,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
wComm.DeliverMessage(ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.Name, m_host.UUID, message);
|
wComm.DeliverMessage(ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.Name, m_host.UUID, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Like osGetAgents but returns enough info for a radar
|
|
||||||
/// </summary>
|
|
||||||
/// <returns>Strided list of the UUID, position and name of each avatar in the region</returns>
|
|
||||||
public LSL_List cmGetAvatarList()
|
|
||||||
{
|
|
||||||
LSL_List result = new LSL_List();
|
|
||||||
World.ForEachScenePresence(delegate (ScenePresence avatar)
|
|
||||||
{
|
|
||||||
if (avatar != null && avatar.UUID != m_host.OwnerID)
|
|
||||||
{
|
|
||||||
if (avatar.IsChildAgent == false)
|
|
||||||
{
|
|
||||||
if (avatar.PhysicsActor != null && avatar.PhysicsActor.Position != null)
|
|
||||||
{
|
|
||||||
result.Add(avatar.UUID);
|
|
||||||
result.Add(avatar.PhysicsActor.Position);
|
|
||||||
result.Add(avatar.Name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get the current Windlight scene
|
/// Get the current Windlight scene
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -44,6 +44,5 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||||
LSL_List cmGetWindlightScene(LSL_List rules);
|
LSL_List cmGetWindlightScene(LSL_List rules);
|
||||||
int cmSetWindlightScene(LSL_List rules);
|
int cmSetWindlightScene(LSL_List rules);
|
||||||
int cmSetWindlightSceneTargeted(LSL_List rules, key target);
|
int cmSetWindlightSceneTargeted(LSL_List rules, key target);
|
||||||
LSL_List cmGetAvatarList();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,9 +72,5 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
{
|
{
|
||||||
return m_CM_Functions.cmSetWindlightSceneTargeted(rules, target);
|
return m_CM_Functions.cmSetWindlightSceneTargeted(rules, target);
|
||||||
}
|
}
|
||||||
public LSL_List cmGetAvatarList()
|
|
||||||
{
|
|
||||||
return m_CM_Functions.cmGetAvatarList();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue