diff options
Taken the old scripting engine out of Region.Environment and moved it into a separate module: OpenSim.Region.ExtensionsScriptModule (named as such because the purpose of it is to script server extensions, rather than "user scripting" like Tedd's engine.)
Diffstat (limited to 'OpenSim/Region/ExtensionsScriptModule/ScriptAPI.cs')
-rw-r--r-- | OpenSim/Region/ExtensionsScriptModule/ScriptAPI.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/OpenSim/Region/ExtensionsScriptModule/ScriptAPI.cs b/OpenSim/Region/ExtensionsScriptModule/ScriptAPI.cs new file mode 100644 index 0000000..d32de7c --- /dev/null +++ b/OpenSim/Region/ExtensionsScriptModule/ScriptAPI.cs | |||
@@ -0,0 +1,32 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using Key = libsecondlife.LLUUID; | ||
5 | using Rotation = libsecondlife.LLQuaternion; | ||
6 | using Vector = libsecondlife.LLVector3; | ||
7 | using LSLList = System.Collections.Generic.List<string>; | ||
8 | |||
9 | |||
10 | using OpenSim.Region.Environment.Scenes; | ||
11 | |||
12 | namespace OpenSim.Region.ExtensionsScriptModule | ||
13 | { | ||
14 | // This class is to be used for engines which may not be able to access the Scene directly. | ||
15 | // Scene access is preffered, but obviously not possible on some non-.NET languages. | ||
16 | public class ScriptAPI | ||
17 | { | ||
18 | Scene scene; | ||
19 | ScriptInterpretedAPI interpretedAPI; | ||
20 | |||
21 | public ScriptAPI(Scene world, Key taskID) | ||
22 | { | ||
23 | scene = world; | ||
24 | interpretedAPI = new ScriptInterpretedAPI(world, taskID); | ||
25 | } | ||
26 | |||
27 | public Object CallMethod(String method, Object[] args) | ||
28 | { | ||
29 | return null; | ||
30 | } | ||
31 | } | ||
32 | } | ||