aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/OpenSimAPI.java
diff options
context:
space:
mode:
authorMW2007-04-11 12:13:21 +0000
committerMW2007-04-11 12:13:21 +0000
commit5ad6d5a939fb7bf0fdfdc6925d4afed306e08641 (patch)
tree8bcf302b69297a27ab254d087f73fe88fecab464 /bin/OpenSimAPI.java
parentChanged so that a bin\ScriptEngines\ directory will be searched for scripting... (diff)
downloadopensim-SC_OLD-5ad6d5a939fb7bf0fdfdc6925d4afed306e08641.zip
opensim-SC_OLD-5ad6d5a939fb7bf0fdfdc6925d4afed306e08641.tar.gz
opensim-SC_OLD-5ad6d5a939fb7bf0fdfdc6925d4afed306e08641.tar.bz2
opensim-SC_OLD-5ad6d5a939fb7bf0fdfdc6925d4afed306e08641.tar.xz
First basic test script now works in the jvm scripting engine.
For it to work you need to have a java sdk installed and the javac.exe somewhere in the environment Path variable. Then To test, copy the text from bin/script1.text into a note card and then add that note to a prim.
Diffstat (limited to 'bin/OpenSimAPI.java')
-rw-r--r--bin/OpenSimAPI.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/bin/OpenSimAPI.java b/bin/OpenSimAPI.java
new file mode 100644
index 0000000..472b947
--- /dev/null
+++ b/bin/OpenSimAPI.java
@@ -0,0 +1,36 @@
1
2
3public class OpenSimAPI {
4
5 public static int GetEntityID()
6 {
7 return 0;
8 }
9
10 public static int GetRandomAvatarID()
11 {
12 return 0;
13 }
14
15 public static float GetEntityPositionX(int id)
16 {
17 return 0.0f;
18 }
19
20 public static float GetEntityPositionY(int id)
21 {
22 return 0.0f;
23 }
24
25 public static float GetEntityPositionZ(int id)
26 {
27 return 0.0f;
28 }
29
30 public static void SetEntityPosition(int id, float x, float y, float z)
31 {
32
33 }
34
35
36} \ No newline at end of file