aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs
diff options
context:
space:
mode:
authorJeff Ames2009-03-07 02:00:18 +0000
committerJeff Ames2009-03-07 02:00:18 +0000
commite1f68145be8b0cfc48c7fe6920ae8db1bfa049f5 (patch)
treed4d37926bd660bbad4dd9e4f84a385a1f770ec5d /OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs
parent* Fixes mantis: #3241 (diff)
downloadopensim-SC-e1f68145be8b0cfc48c7fe6920ae8db1bfa049f5.zip
opensim-SC-e1f68145be8b0cfc48c7fe6920ae8db1bfa049f5.tar.gz
opensim-SC-e1f68145be8b0cfc48c7fe6920ae8db1bfa049f5.tar.bz2
opensim-SC-e1f68145be8b0cfc48c7fe6920ae8db1bfa049f5.tar.xz
Update svn properties.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs78
1 files changed, 39 insertions, 39 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs
index 6c7f854..b1a4394 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs
@@ -1,39 +1,39 @@
1using System.Collections.Generic; 1using System.Collections.Generic;
2using OpenSim.Region.Framework.Scenes; 2using OpenSim.Region.Framework.Scenes;
3 3
4namespace OpenSim.Region.OptionalModules.Scripting.Minimodule 4namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
5{ 5{
6 public class World : IWorld 6 public class World : IWorld
7 { 7 {
8 private readonly Scene m_internalScene; 8 private readonly Scene m_internalScene;
9 private readonly Heightmap m_heights; 9 private readonly Heightmap m_heights;
10 10
11 public World(Scene internalScene) 11 public World(Scene internalScene)
12 { 12 {
13 m_internalScene = internalScene; 13 m_internalScene = internalScene;
14 m_heights = new Heightmap(m_internalScene); 14 m_heights = new Heightmap(m_internalScene);
15 } 15 }
16 16
17 public IObject[] Objects 17 public IObject[] Objects
18 { 18 {
19 get 19 get
20 { 20 {
21 List<EntityBase> ents = m_internalScene.Entities.GetAllByType<SceneObjectGroup>(); 21 List<EntityBase> ents = m_internalScene.Entities.GetAllByType<SceneObjectGroup>();
22 IObject[] rets = new IObject[ents.Count]; 22 IObject[] rets = new IObject[ents.Count];
23 23
24 for (int i = 0; i < ents.Count; i++) 24 for (int i = 0; i < ents.Count; i++)
25 { 25 {
26 EntityBase ent = ents[i]; 26 EntityBase ent = ents[i];
27 rets[i] = new SOPObject(m_internalScene, ent.LocalId); 27 rets[i] = new SOPObject(m_internalScene, ent.LocalId);
28 } 28 }
29 29
30 return rets; 30 return rets;
31 } 31 }
32 } 32 }
33 33
34 public IHeightmap Terrain 34 public IHeightmap Terrain
35 { 35 {
36 get { return m_heights; } 36 get { return m_heights; }
37 } 37 }
38 } 38 }
39} 39}