diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs index c28aa9a..9f0dd27 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs | |||
@@ -56,6 +56,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
56 | 56 | ||
57 | public ScriptBaseClass() | 57 | public ScriptBaseClass() |
58 | { | 58 | { |
59 | m_Executor = new Executor(this); | ||
60 | |||
59 | MethodInfo[] myArrayMethodInfo = GetType().GetMethods(BindingFlags.Public|BindingFlags.Instance); | 61 | MethodInfo[] myArrayMethodInfo = GetType().GetMethods(BindingFlags.Public|BindingFlags.Instance); |
60 | 62 | ||
61 | foreach (MethodInfo mi in myArrayMethodInfo) | 63 | foreach (MethodInfo mi in myArrayMethodInfo) |
@@ -68,6 +70,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
68 | } | 70 | } |
69 | } | 71 | } |
70 | 72 | ||
73 | private Executor m_Executor = null; | ||
74 | |||
75 | public int GetStateEventFlags(string state) | ||
76 | { | ||
77 | return (int)m_Executor.GetStateEventFlags(state); | ||
78 | } | ||
79 | |||
80 | public void ExecuteEvent(string state, string FunctionName, object[] args) | ||
81 | { | ||
82 | m_Executor.ExecuteEvent(state, FunctionName, args); | ||
83 | } | ||
84 | |||
71 | public string[] GetApis() | 85 | public string[] GetApis() |
72 | { | 86 | { |
73 | string[] apis = new string[inits.Count]; | 87 | string[] apis = new string[inits.Count]; |