mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
A few small changes and hopefully fixed the nant build problem (OpenSim.Framework came before OpenSim.Framework.Console, so was causing a problem as OpenSim.Framework references OpenSim.Framework.Console).
This commit is contained in:
@@ -440,7 +440,7 @@ namespace OpenSim.Region
|
||||
PData.PathTwistBegin = addPacket.ObjectData.PathTwistBegin;
|
||||
LLVector3 pos1 = addPacket.ObjectData.RayEnd;
|
||||
this.primData.FullID = this.uuid = LLUUID.Random();
|
||||
this.localid = (uint)(localID);
|
||||
this.primData.LocalID = this.localid = (uint)(localID);
|
||||
this.primData.Position = this.Pos = pos1;
|
||||
|
||||
this.updateFlag = 1;
|
||||
|
||||
@@ -20,6 +20,8 @@ using OpenSim.Region.Estate;
|
||||
|
||||
namespace OpenSim.Region
|
||||
{
|
||||
public delegate bool FilterAvatarList(Avatar avatar);
|
||||
|
||||
public partial class World : WorldBase, ILocalStorageReceiver, IScriptAPI
|
||||
{
|
||||
protected System.Timers.Timer m_heartbeatTimer = new System.Timers.Timer();
|
||||
@@ -592,6 +594,25 @@ namespace OpenSim.Region
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Request a filtered list of Avatars in this World
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public List<Avatar> RequestAvatarList(FilterAvatarList filter)
|
||||
{
|
||||
List<Avatar> result = new List<Avatar>();
|
||||
|
||||
foreach (Avatar avatar in Avatars.Values)
|
||||
{
|
||||
if (filter(avatar))
|
||||
{
|
||||
result.Add(avatar);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public Avatar RequestAvatar(LLUUID avatarID)
|
||||
{
|
||||
if (this.Avatars.ContainsKey(avatarID))
|
||||
|
||||
Reference in New Issue
Block a user