mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +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:
@@ -58,6 +58,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
m_MOD_Functions = (IMOD_Api)api;
|
||||
}
|
||||
|
||||
public string modInvokeS(string fname, params object[] parms)
|
||||
{
|
||||
return m_MOD_Functions.modInvokeS(fname, parms);
|
||||
}
|
||||
|
||||
public int modInvokeI(string fname, params object[] parms)
|
||||
{
|
||||
return m_MOD_Functions.modInvokeI(fname, parms);
|
||||
}
|
||||
|
||||
public float modInvokeF(string fname, params object[] parms)
|
||||
{
|
||||
return m_MOD_Functions.modInvokeF(fname, parms);
|
||||
}
|
||||
|
||||
public string modSendCommand(string module, string command, string k)
|
||||
{
|
||||
return m_MOD_Functions.modSendCommand(module, command, k);
|
||||
|
||||
Reference in New Issue
Block a user