aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim.Framework/IScriptAPI.cs13
-rw-r--r--OpenSim.Framework/IScriptEngine.cs14
-rw-r--r--OpenSim.Framework/OSVector3.cs18
3 files changed, 45 insertions, 0 deletions
diff --git a/OpenSim.Framework/IScriptAPI.cs b/OpenSim.Framework/IScriptAPI.cs
new file mode 100644
index 0000000..2f58198
--- /dev/null
+++ b/OpenSim.Framework/IScriptAPI.cs
@@ -0,0 +1,13 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenSim.Framework.Interfaces
6{
7 public interface IScriptAPI
8 {
9 OSVector3 GetEntityPosition(uint localID);
10 void SetEntityPosition(uint localID, float x, float y, float z);
11 uint GetRandomAvatarID();
12 }
13}
diff --git a/OpenSim.Framework/IScriptEngine.cs b/OpenSim.Framework/IScriptEngine.cs
new file mode 100644
index 0000000..ed8974c
--- /dev/null
+++ b/OpenSim.Framework/IScriptEngine.cs
@@ -0,0 +1,14 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace 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}
diff --git a/OpenSim.Framework/OSVector3.cs b/OpenSim.Framework/OSVector3.cs
new file mode 100644
index 0000000..b5d1223
--- /dev/null
+++ b/OpenSim.Framework/OSVector3.cs
@@ -0,0 +1,18 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenSim.Framework
6{
7 public class OSVector3
8 {
9 public float X;
10 public float Y;
11 public float Z;
12
13 public OSVector3()
14 {
15
16 }
17 }
18}