mirror of
https://github.com/opensim/opensim.git
synced 2026-05-18 22:25:36 +08:00
* 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.
This commit is contained in:
@@ -319,6 +319,29 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||
Script.Exec.ExecuteEvent(FunctionName, args);
|
||||
}
|
||||
|
||||
public int GetStateEventFlags(uint localID, LLUUID itemID)
|
||||
{
|
||||
// Console.WriteLine("GetStateEventFlags for <" + localID + "," + itemID + ">");
|
||||
try
|
||||
{
|
||||
IScript Script = GetScript(localID, itemID);
|
||||
if (Script == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
ExecutorBase.scriptEvents evflags = Script.Exec.GetStateEventFlags();
|
||||
return (int)evflags;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// Console.WriteLine("Failed to get script reference for <" + localID + "," + itemID + ">");
|
||||
// Console.WriteLine(e.ToString());
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Internal functions to keep track of script
|
||||
|
||||
Reference in New Issue
Block a user