mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Adds a new script command 'modInvoke' to invoke registered functions
from region modules. The LSL translator is extended to generate the
modInvoke format of commands for directly inlined function calls.
A region module can register a function Test() with the name "Test".
LSL code can call that function as "Test()". The compiler will translate
that invocation into modInvoke("Test", ...)
This commit is contained in:
@@ -40,6 +40,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
{
|
||||
public interface IMOD_Api
|
||||
{
|
||||
// Invocation functions
|
||||
string modInvokeS(string fname, params object[] parms);
|
||||
int modInvokeI(string fname, params object[] parms);
|
||||
float modInvokeF(string fname, params object[] parms);
|
||||
// vector modInvokeV(string fname, params object[] parms);
|
||||
// rotation modInvokeV(string fname, params object[] parms);
|
||||
// key modInvokeK(string fname, params object[] parms);
|
||||
// list modInvokeL(string fname, params object[] parms);
|
||||
|
||||
//Module functions
|
||||
string modSendCommand(string modules, string command, string k);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user