aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs25
1 files changed, 22 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 819815b..2f277f9 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -40,10 +40,8 @@ using OpenSim.Framework.Communications;
40using OpenSim.Framework.Communications.Cache; 40using OpenSim.Framework.Communications.Cache;
41using OpenSim.Framework.Servers; 41using OpenSim.Framework.Servers;
42using OpenSim.Region.Environment.Interfaces; 42using OpenSim.Region.Environment.Interfaces;
43using OpenSim.Region.Environment.Modules;
44using OpenSim.Region.Environment.Scenes.Scripting; 43using OpenSim.Region.Environment.Scenes.Scripting;
45using OpenSim.Region.Physics.Manager; 44using OpenSim.Region.Physics.Manager;
46using OpenSim.Region.Terrain;
47using Caps = OpenSim.Region.Capabilities.Caps; 45using Caps = OpenSim.Region.Capabilities.Caps;
48using Image = System.Drawing.Image; 46using Image = System.Drawing.Image;
49using Timer = System.Timers.Timer; 47using Timer = System.Timers.Timer;
@@ -75,7 +73,6 @@ namespace OpenSim.Region.Environment.Scenes
75 private readonly Mutex _primAllocateMutex = new Mutex(false); 73 private readonly Mutex _primAllocateMutex = new Mutex(false);
76 74
77 private int m_timePhase = 24; 75 private int m_timePhase = 24;
78 private int m_timeUpdateCount;
79 76
80 private readonly Mutex updateLock; 77 private readonly Mutex updateLock;
81 public bool m_physicalPrim; 78 public bool m_physicalPrim;
@@ -104,6 +101,7 @@ namespace OpenSim.Region.Environment.Scenes
104 protected Dictionary<string, IRegionModule> Modules = new Dictionary<string, IRegionModule>(); 101 protected Dictionary<string, IRegionModule> Modules = new Dictionary<string, IRegionModule>();
105 public Dictionary<Type, object> ModuleInterfaces = new Dictionary<Type, object>(); 102 public Dictionary<Type, object> ModuleInterfaces = new Dictionary<Type, object>();
106 protected Dictionary<string, object> ModuleAPIMethods = new Dictionary<string, object>(); 103 protected Dictionary<string, object> ModuleAPIMethods = new Dictionary<string, object>();
104 public Dictionary<string, ICommander> m_moduleCommanders = new Dictionary<string, ICommander>();
107 105
108 //API module interfaces 106 //API module interfaces
109 107
@@ -1949,6 +1947,27 @@ namespace OpenSim.Region.Environment.Scenes
1949 } 1947 }
1950 } 1948 }
1951 1949
1950 public void RegisterModuleCommander(string name, ICommander commander)
1951 {
1952 lock (m_moduleCommanders)
1953 {
1954 m_moduleCommanders.Add(name, commander);
1955 }
1956 }
1957
1958 public ICommander GetCommander(string name)
1959 {
1960 lock (m_moduleCommanders)
1961 {
1962 return m_moduleCommanders[name];
1963 }
1964 }
1965
1966 public Dictionary<string, ICommander> GetCommanders()
1967 {
1968 return m_moduleCommanders;
1969 }
1970
1952 /// <summary> 1971 /// <summary>
1953 /// 1972 ///
1954 /// </summary> 1973 /// </summary>