diff options
author | Melanie Thielker | 2008-11-08 02:24:34 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-11-08 02:24:34 +0000 |
commit | 833f5e8bed5b36501c4579859e380038400ecb75 (patch) | |
tree | c785b4178baa18f49490e572f3013e531921e349 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs | |
parent | * Correct catch changed on last commit, since I just realized I started makin... (diff) | |
download | opensim-SC-833f5e8bed5b36501c4579859e380038400ecb75.zip opensim-SC-833f5e8bed5b36501c4579859e380038400ecb75.tar.gz opensim-SC-833f5e8bed5b36501c4579859e380038400ecb75.tar.bz2 opensim-SC-833f5e8bed5b36501c4579859e380038400ecb75.tar.xz |
Refactor IEventReceiver back into IScriptEngine
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs index c828d69..71a8d0f 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs | |||
@@ -48,24 +48,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
48 | private static int cmdHandlerThreadCycleSleepms; | 48 | private static int cmdHandlerThreadCycleSleepms; |
49 | 49 | ||
50 | private static List<IScene> m_Scenes = new List<IScene>(); | 50 | private static List<IScene> m_Scenes = new List<IScene>(); |
51 | private static List<IEventReceiver> m_ScriptEngines = | 51 | private static List<IScriptEngine> m_ScriptEngines = |
52 | new List<IEventReceiver>(); | 52 | new List<IScriptEngine>(); |
53 | 53 | ||
54 | public IEventReceiver m_ScriptEngine; | 54 | public IScriptEngine m_ScriptEngine; |
55 | private IScene m_Scene; | 55 | private IScene m_Scene; |
56 | 56 | ||
57 | private static Dictionary<IEventReceiver, Dataserver> m_Dataserver = | 57 | private static Dictionary<IScriptEngine, Dataserver> m_Dataserver = |
58 | new Dictionary<IEventReceiver, Dataserver>(); | 58 | new Dictionary<IScriptEngine, Dataserver>(); |
59 | private static Dictionary<IEventReceiver, Timer> m_Timer = | 59 | private static Dictionary<IScriptEngine, Timer> m_Timer = |
60 | new Dictionary<IEventReceiver, Timer>(); | 60 | new Dictionary<IScriptEngine, Timer>(); |
61 | private static Dictionary<IEventReceiver, Listener> m_Listener = | 61 | private static Dictionary<IScriptEngine, Listener> m_Listener = |
62 | new Dictionary<IEventReceiver, Listener>(); | 62 | new Dictionary<IScriptEngine, Listener>(); |
63 | private static Dictionary<IEventReceiver, HttpRequest> m_HttpRequest = | 63 | private static Dictionary<IScriptEngine, HttpRequest> m_HttpRequest = |
64 | new Dictionary<IEventReceiver, HttpRequest>(); | 64 | new Dictionary<IScriptEngine, HttpRequest>(); |
65 | private static Dictionary<IEventReceiver, SensorRepeat> m_SensorRepeat = | 65 | private static Dictionary<IScriptEngine, SensorRepeat> m_SensorRepeat = |
66 | new Dictionary<IEventReceiver, SensorRepeat>(); | 66 | new Dictionary<IScriptEngine, SensorRepeat>(); |
67 | private static Dictionary<IEventReceiver, XmlRequest> m_XmlRequest = | 67 | private static Dictionary<IScriptEngine, XmlRequest> m_XmlRequest = |
68 | new Dictionary<IEventReceiver, XmlRequest>(); | 68 | new Dictionary<IScriptEngine, XmlRequest>(); |
69 | 69 | ||
70 | public Dataserver DataserverPlugin | 70 | public Dataserver DataserverPlugin |
71 | { | 71 | { |
@@ -97,12 +97,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
97 | get { return m_XmlRequest[m_ScriptEngine]; } | 97 | get { return m_XmlRequest[m_ScriptEngine]; } |
98 | } | 98 | } |
99 | 99 | ||
100 | public IEventReceiver[] ScriptEngines | 100 | public IScriptEngine[] ScriptEngines |
101 | { | 101 | { |
102 | get { return m_ScriptEngines.ToArray(); } | 102 | get { return m_ScriptEngines.ToArray(); } |
103 | } | 103 | } |
104 | 104 | ||
105 | public AsyncCommandManager(IEventReceiver _ScriptEngine) | 105 | public AsyncCommandManager(IScriptEngine _ScriptEngine) |
106 | { | 106 | { |
107 | m_ScriptEngine = _ScriptEngine; | 107 | m_ScriptEngine = _ScriptEngine; |
108 | m_Scene = m_ScriptEngine.World; | 108 | m_Scene = m_ScriptEngine.World; |
@@ -202,7 +202,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
202 | // Check XMLRPCRequests | 202 | // Check XMLRPCRequests |
203 | m_XmlRequest[m_ScriptEngines[0]].CheckXMLRPCRequests(); | 203 | m_XmlRequest[m_ScriptEngines[0]].CheckXMLRPCRequests(); |
204 | 204 | ||
205 | foreach (IEventReceiver s in m_ScriptEngines) | 205 | foreach (IScriptEngine s in m_ScriptEngines) |
206 | { | 206 | { |
207 | // Check Listeners | 207 | // Check Listeners |
208 | m_Listener[s].CheckListeners(); | 208 | m_Listener[s].CheckListeners(); |
@@ -223,7 +223,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
223 | /// </summary> | 223 | /// </summary> |
224 | /// <param name="localID"></param> | 224 | /// <param name="localID"></param> |
225 | /// <param name="itemID"></param> | 225 | /// <param name="itemID"></param> |
226 | public static void RemoveScript(IEventReceiver engine, uint localID, UUID itemID) | 226 | public static void RemoveScript(IScriptEngine engine, uint localID, UUID itemID) |
227 | { | 227 | { |
228 | // Remove a specific script | 228 | // Remove a specific script |
229 | 229 | ||
@@ -250,7 +250,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
250 | 250 | ||
251 | } | 251 | } |
252 | 252 | ||
253 | public static Object[] GetSerializationData(IEventReceiver engine, UUID itemID) | 253 | public static Object[] GetSerializationData(IScriptEngine engine, UUID itemID) |
254 | { | 254 | { |
255 | List<Object> data = new List<Object>(); | 255 | List<Object> data = new List<Object>(); |
256 | 256 | ||
@@ -281,7 +281,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
281 | return data.ToArray(); | 281 | return data.ToArray(); |
282 | } | 282 | } |
283 | 283 | ||
284 | public static void CreateFromData(IEventReceiver engine, uint localID, | 284 | public static void CreateFromData(IScriptEngine engine, uint localID, |
285 | UUID itemID, UUID hostID, Object[] data) | 285 | UUID itemID, UUID hostID, Object[] data) |
286 | { | 286 | { |
287 | int idx = 0; | 287 | int idx = 0; |