diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs index cdefe16..4ba6778 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs | |||
@@ -58,6 +58,23 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 | ||
61 | public IAvatar[] Avatars | ||
62 | { | ||
63 | get | ||
64 | { | ||
65 | List<EntityBase> ents = m_internalScene.Entities.GetAllByType<ScenePresence>(); | ||
66 | IAvatar[] rets = new IAvatar[ents.Count]; | ||
67 | |||
68 | for (int i = 0; i < ents.Count; i++) | ||
69 | { | ||
70 | EntityBase ent = ents[i]; | ||
71 | rets[i] = new SPAvatar(m_internalScene, ent.UUID); | ||
72 | } | ||
73 | |||
74 | return rets; | ||
75 | } | ||
76 | } | ||
77 | |||
61 | public IHeightmap Terrain | 78 | public IHeightmap Terrain |
62 | { | 79 | { |
63 | get { return m_heights; } | 80 | get { return m_heights; } |