diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs b/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs index 3b7e88e..eba88f3 100644 --- a/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs +++ b/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs | |||
@@ -140,28 +140,23 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
140 | /// </summary> | 140 | /// </summary> |
141 | /// <param name="FunctionName">Name of function to execute</param> | 141 | /// <param name="FunctionName">Name of function to execute</param> |
142 | /// <param name="args">Arguments to pass to function</param> | 142 | /// <param name="args">Arguments to pass to function</param> |
143 | public void ExecuteEvent(string FunctionName, object[] args) | 143 | public void ExecuteEvent(string state, string FunctionName, object[] args) |
144 | { | 144 | { |
145 | if (m_Running == false) | 145 | DoExecuteEvent(state, FunctionName, args); |
146 | { | ||
147 | // Script is inactive, do not execute! | ||
148 | return; | ||
149 | } | ||
150 | DoExecuteEvent(FunctionName, args); | ||
151 | } | 146 | } |
152 | 147 | ||
153 | protected abstract void DoExecuteEvent(string FunctionName, object[] args); | 148 | protected abstract void DoExecuteEvent(string state, string FunctionName, object[] args); |
154 | 149 | ||
155 | /// <summary> | 150 | /// <summary> |
156 | /// Compute the events handled by the current state of the script | 151 | /// Compute the events handled by the current state of the script |
157 | /// </summary> | 152 | /// </summary> |
158 | /// <returns>state mask</returns> | 153 | /// <returns>state mask</returns> |
159 | public scriptEvents GetStateEventFlags() | 154 | public scriptEvents GetStateEventFlags(string state) |
160 | { | 155 | { |
161 | return DoGetStateEventFlags(); | 156 | return DoGetStateEventFlags(state); |
162 | } | 157 | } |
163 | 158 | ||
164 | protected abstract scriptEvents DoGetStateEventFlags(); | 159 | protected abstract scriptEvents DoGetStateEventFlags(string state); |
165 | 160 | ||
166 | /// <summary> | 161 | /// <summary> |
167 | /// Stop script from running. Event execution will be ignored. | 162 | /// Stop script from running. Event execution will be ignored. |