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/Interfaces/IScriptEngine.cs | |
parent | * Correct catch changed on last commit, since I just realized I started makin... (diff) | |
download | opensim-SC_OLD-833f5e8bed5b36501c4579859e380038400ecb75.zip opensim-SC_OLD-833f5e8bed5b36501c4579859e380038400ecb75.tar.gz opensim-SC_OLD-833f5e8bed5b36501c4579859e380038400ecb75.tar.bz2 opensim-SC_OLD-833f5e8bed5b36501c4579859e380038400ecb75.tar.xz |
Refactor IEventReceiver back into IScriptEngine
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs b/OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs index 5bd2f79..29b83dc 100644 --- a/OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs | |||
@@ -33,6 +33,7 @@ using OpenMetaverse; | |||
33 | using Nini.Config; | 33 | using Nini.Config; |
34 | using OpenSim.Region.ScriptEngine.Interfaces; | 34 | using OpenSim.Region.ScriptEngine.Interfaces; |
35 | using Amib.Threading; | 35 | using Amib.Threading; |
36 | using OpenSim.Framework; | ||
36 | 37 | ||
37 | namespace OpenSim.Region.ScriptEngine.Interfaces | 38 | namespace OpenSim.Region.ScriptEngine.Interfaces |
38 | { | 39 | { |
@@ -40,11 +41,39 @@ namespace OpenSim.Region.ScriptEngine.Interfaces | |||
40 | /// An interface for a script API module to communicate with | 41 | /// An interface for a script API module to communicate with |
41 | /// the engine it's running under | 42 | /// the engine it's running under |
42 | /// </summary> | 43 | /// </summary> |
43 | public interface IScriptEngine : IEventReceiver | 44 | public interface IScriptEngine |
44 | { | 45 | { |
45 | /// <summary> | 46 | /// <summary> |
46 | /// Queue an event for execution | 47 | /// Queue an event for execution |
47 | /// </summary> | 48 | /// </summary> |
48 | IScriptWorkItem QueueEventHandler(object parms); | 49 | IScriptWorkItem QueueEventHandler(object parms); |
50 | |||
51 | Scene World { get; } | ||
52 | |||
53 | /// <summary> | ||
54 | /// Post an event to a single script | ||
55 | /// </summary> | ||
56 | bool PostScriptEvent(UUID itemID, EventParams parms); | ||
57 | |||
58 | /// <summary> | ||
59 | /// Post event to an entire prim | ||
60 | /// </summary> | ||
61 | bool PostObjectEvent(uint localID, EventParams parms); | ||
62 | |||
63 | DetectParams GetDetectParams(UUID item, int number); | ||
64 | int GetStartParameter(UUID itemID); | ||
65 | |||
66 | void SetScriptState(UUID itemID, bool state); | ||
67 | bool GetScriptState(UUID itemID); | ||
68 | void SetState(UUID itemID, string newState); | ||
69 | void ApiResetScript(UUID itemID); | ||
70 | void ResetScript(UUID itemID); | ||
71 | IConfig Config { get; } | ||
72 | string ScriptEngineName { get; } | ||
73 | ILog Log { get; } | ||
74 | IScriptApi GetApi(UUID itemID, string name); | ||
75 | |||
76 | string GetAssemblyName(UUID itemID); | ||
77 | string GetXMLState(UUID itemID); | ||
49 | } | 78 | } |
50 | } | 79 | } |