* Adds World.Avatars[] to MRM Scripting. Contains an enumerable array containing IAvatar instances for each avatar in the region.

* Adds Test/TestModule.cs which demonstrates a very quick and simple MRM Test.
This commit is contained in:
Adam Frisby
2009-04-01 06:55:39 +00:00
parent 0266c344fb
commit 7eccad05c9
5 changed files with 73 additions and 1 deletions

View File

@@ -58,6 +58,23 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
}
}
public IAvatar[] Avatars
{
get
{
List<EntityBase> ents = m_internalScene.Entities.GetAllByType<ScenePresence>();
IAvatar[] rets = new IAvatar[ents.Count];
for (int i = 0; i < ents.Count; i++)
{
EntityBase ent = ents[i];
rets[i] = new SPAvatar(m_internalScene, ent.UUID);
}
return rets;
}
}
public IHeightmap Terrain
{
get { return m_heights; }