aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneManager.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneManager.cs b/OpenSim/Region/Framework/Scenes/SceneManager.cs
index 069367d..7fada4b 100644
--- a/OpenSim/Region/Framework/Scenes/SceneManager.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneManager.cs
@@ -47,6 +47,12 @@ namespace OpenSim.Region.Framework.Scenes
47 47
48 public event RestartSim OnRestartSim; 48 public event RestartSim OnRestartSim;
49 49
50 private static SceneManager m_instance = null;
51 public static SceneManager Instance
52 {
53 get { return m_instance; }
54 }
55
50 private readonly List<Scene> m_localScenes = new List<Scene>(); 56 private readonly List<Scene> m_localScenes = new List<Scene>();
51 private Scene m_currentScene = null; 57 private Scene m_currentScene = null;
52 58
@@ -81,6 +87,12 @@ namespace OpenSim.Region.Framework.Scenes
81 } 87 }
82 } 88 }
83 89
90 public SceneManager()
91 {
92 m_instance = this;
93 m_localScenes = new List<Scene>();
94 }
95
84 public void Close() 96 public void Close()
85 { 97 {
86 // collect known shared modules in sharedModules 98 // collect known shared modules in sharedModules
@@ -588,4 +600,4 @@ namespace OpenSim.Region.Framework.Scenes
588 m_localScenes.ForEach(action); 600 m_localScenes.ForEach(action);
589 } 601 }
590 } 602 }
591} \ No newline at end of file 603}