diff options
author | MW | 2007-05-27 18:52:42 +0000 |
---|---|---|
committer | MW | 2007-05-27 18:52:42 +0000 |
commit | c746a2f9f4f0b1e7eea564effdae63472f79ab22 (patch) | |
tree | 54d23af3d168958bfec995cf2987cf5af79ac149 /Common/OpenSim.Framework/Interfaces/Scripting | |
parent | Goodbye World (diff) | |
download | opensim-SC_OLD-c746a2f9f4f0b1e7eea564effdae63472f79ab22.zip opensim-SC_OLD-c746a2f9f4f0b1e7eea564effdae63472f79ab22.tar.gz opensim-SC_OLD-c746a2f9f4f0b1e7eea564effdae63472f79ab22.tar.bz2 opensim-SC_OLD-c746a2f9f4f0b1e7eea564effdae63472f79ab22.tar.xz |
Should allow multiple worlds (and UDP servers) to be ran in one instance, just missing backend comms and working Avatar/primitives classes.
Diffstat (limited to 'Common/OpenSim.Framework/Interfaces/Scripting')
-rw-r--r-- | Common/OpenSim.Framework/Interfaces/Scripting/IScriptAPI.cs | 14 | ||||
-rw-r--r-- | Common/OpenSim.Framework/Interfaces/Scripting/IScriptEngine.cs | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/Common/OpenSim.Framework/Interfaces/Scripting/IScriptAPI.cs b/Common/OpenSim.Framework/Interfaces/Scripting/IScriptAPI.cs new file mode 100644 index 0000000..3ad0f06 --- /dev/null +++ b/Common/OpenSim.Framework/Interfaces/Scripting/IScriptAPI.cs | |||
@@ -0,0 +1,14 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using OpenSim.Framework.Types; | ||
5 | |||
6 | namespace OpenSim.Framework.Interfaces | ||
7 | { | ||
8 | public interface IScriptAPI | ||
9 | { | ||
10 | OSVector3 GetEntityPosition(uint localID); | ||
11 | void SetEntityPosition(uint localID, float x, float y, float z); | ||
12 | uint GetRandomAvatarID(); | ||
13 | } | ||
14 | } | ||
diff --git a/Common/OpenSim.Framework/Interfaces/Scripting/IScriptEngine.cs b/Common/OpenSim.Framework/Interfaces/Scripting/IScriptEngine.cs new file mode 100644 index 0000000..ed8974c --- /dev/null +++ b/Common/OpenSim.Framework/Interfaces/Scripting/IScriptEngine.cs | |||
@@ -0,0 +1,14 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenSim.Framework.Interfaces | ||
6 | { | ||
7 | public interface IScriptEngine | ||
8 | { | ||
9 | bool Init(IScriptAPI api); | ||
10 | string GetName(); | ||
11 | void LoadScript(string script, string scriptName, uint entityID); | ||
12 | void OnFrame(); | ||
13 | } | ||
14 | } | ||