mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
* Applied patch from Melanie, mantis issue #1581 - "Refactor LSL language, api and compiler out of XEngine"
"First stage in a major Script Engine refactor, that will result in the LSL implementaions ebing reconverged. Not there yet, but one major part is done." Thank you, Melanie!
This commit is contained in:
@@ -28,7 +28,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Remoting.Lifetime;
|
||||
using OpenSim.Region.ScriptEngine.XEngine.Script;
|
||||
using OpenSim.Region.ScriptEngine.Shared;
|
||||
using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
|
||||
using OpenSim.Region.ScriptEngine.Interfaces;
|
||||
|
||||
namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
{
|
||||
@@ -117,23 +119,23 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
/// </summary>
|
||||
/// <param name="FunctionName">Name of function to execute</param>
|
||||
/// <param name="args">Arguments to pass to function</param>
|
||||
public void ExecuteEvent(string FunctionName, object[] args)
|
||||
public void ExecuteEvent(string state, string FunctionName, object[] args)
|
||||
{
|
||||
DoExecuteEvent(FunctionName, args);
|
||||
DoExecuteEvent(state, FunctionName, args);
|
||||
}
|
||||
|
||||
protected abstract void DoExecuteEvent(string FunctionName, object[] args);
|
||||
protected abstract void DoExecuteEvent(string state, string FunctionName, object[] args);
|
||||
|
||||
/// <summary>
|
||||
/// Compute the events handled by the current state of the script
|
||||
/// </summary>
|
||||
/// <returns>state mask</returns>
|
||||
public scriptEvents GetStateEventFlags()
|
||||
public scriptEvents GetStateEventFlags(string state)
|
||||
{
|
||||
return DoGetStateEventFlags();
|
||||
return DoGetStateEventFlags(state);
|
||||
}
|
||||
|
||||
protected abstract scriptEvents DoGetStateEventFlags();
|
||||
protected abstract scriptEvents DoGetStateEventFlags(string state);
|
||||
|
||||
protected void initEventFlags()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user