diff options
author | Teravus Ovares | 2008-05-01 16:39:02 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-05-01 16:39:02 +0000 |
commit | c803e0cca1ef1e81bec4dcd615aea955f3756b19 (patch) | |
tree | 97c1ff9b468e930e8152a8d6e8df523353229d16 /OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs | |
parent | * Spring cleaning on Region.Environment. (diff) | |
download | opensim-SC-c803e0cca1ef1e81bec4dcd615aea955f3756b19.zip opensim-SC-c803e0cca1ef1e81bec4dcd615aea955f3756b19.tar.gz opensim-SC-c803e0cca1ef1e81bec4dcd615aea955f3756b19.tar.bz2 opensim-SC-c803e0cca1ef1e81bec4dcd615aea955f3756b19.tar.xz |
* Deletes my EventReader ScriptRewriter. It isn't required to rewrite the script to publish the events anymore.
* Introduces a language(regex) independent event recognizer and publishes the events the script listens.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs index cd2e530..7812c8c 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs | |||
@@ -319,6 +319,29 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
319 | Script.Exec.ExecuteEvent(FunctionName, args); | 319 | Script.Exec.ExecuteEvent(FunctionName, args); |
320 | } | 320 | } |
321 | 321 | ||
322 | public int GetStateEventFlags(uint localID, LLUUID itemID) | ||
323 | { | ||
324 | // Console.WriteLine("GetStateEventFlags for <" + localID + "," + itemID + ">"); | ||
325 | try | ||
326 | { | ||
327 | IScript Script = GetScript(localID, itemID); | ||
328 | if (Script == null) | ||
329 | { | ||
330 | return 0; | ||
331 | } | ||
332 | ExecutorBase.scriptEvents evflags = Script.Exec.GetStateEventFlags(); | ||
333 | return (int)evflags; | ||
334 | } | ||
335 | catch (Exception e) | ||
336 | { | ||
337 | // Console.WriteLine("Failed to get script reference for <" + localID + "," + itemID + ">"); | ||
338 | // Console.WriteLine(e.ToString()); | ||
339 | } | ||
340 | |||
341 | return 0; | ||
342 | } | ||
343 | |||
344 | |||
322 | #endregion | 345 | #endregion |
323 | 346 | ||
324 | #region Internal functions to keep track of script | 347 | #region Internal functions to keep track of script |