aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-09-26 15:01:03 +0000
committerMelanie Thielker2008-09-26 15:01:03 +0000
commit24628928c3bd7148e9df6920ca8b3ed74aaafb49 (patch)
tree2dca9e3e8d06a727bb7fdbb2be28d3e76d86730a /OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs
parent* refactor: split out AssetXferUploader (diff)
downloadopensim-SC_OLD-24628928c3bd7148e9df6920ca8b3ed74aaafb49.zip
opensim-SC_OLD-24628928c3bd7148e9df6920ca8b3ed74aaafb49.tar.gz
opensim-SC_OLD-24628928c3bd7148e9df6920ca8b3ed74aaafb49.tar.bz2
opensim-SC_OLD-24628928c3bd7148e9df6920ca8b3ed74aaafb49.tar.xz
Add per-instance date to DNE to avoid serializing stuff 10 times a second.
Clode cleanup and removal of commented stuff in ScriptManager.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs17
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.