diff options
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 |