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:
MW
2007-06-11 16:13:52 +00:00
parent ed80c7ae32
commit 2f2ec10172
6 changed files with 77 additions and 26 deletions

View File

@@ -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;

View File

@@ -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))