diff options
Diffstat (limited to 'OpenSim/OpenSim.Scripting/EmbeddedJVM/InterpreterMethods.cs')
-rw-r--r-- | OpenSim/OpenSim.Scripting/EmbeddedJVM/InterpreterMethods.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/OpenSim.Scripting/EmbeddedJVM/InterpreterMethods.cs b/OpenSim/OpenSim.Scripting/EmbeddedJVM/InterpreterMethods.cs index 00aa98e..4760e59 100644 --- a/OpenSim/OpenSim.Scripting/EmbeddedJVM/InterpreterMethods.cs +++ b/OpenSim/OpenSim.Scripting/EmbeddedJVM/InterpreterMethods.cs | |||
@@ -34,6 +34,8 @@ using OpenSim.Framework.Interfaces; | |||
34 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Types; | 35 | using OpenSim.Framework.Types; |
36 | 36 | ||
37 | using libsecondlife; | ||
38 | |||
37 | namespace OpenSim.Scripting.EmbeddedJVM | 39 | namespace OpenSim.Scripting.EmbeddedJVM |
38 | { | 40 | { |
39 | partial class Thread | 41 | partial class Thread |
@@ -101,7 +103,7 @@ namespace OpenSim.Scripting.EmbeddedJVM | |||
101 | { | 103 | { |
102 | //Console.WriteLine("get entity pos for " + ((Int)bs1).mValue); | 104 | //Console.WriteLine("get entity pos for " + ((Int)bs1).mValue); |
103 | //should get the position of the entity from the IScriptAPI | 105 | //should get the position of the entity from the IScriptAPI |
104 | OSVector3 vec3 = Thread.OpenSimScriptAPI.GetEntityPosition((uint)((Int)bs1).mValue); | 106 | LLVector3 vec3 = Thread.OpenSimScriptAPI.GetEntityPosition((uint)((Int)bs1).mValue); |
105 | Float pos = new Float(); | 107 | Float pos = new Float(); |
106 | pos.mValue = vec3.X; | 108 | pos.mValue = vec3.X; |
107 | // Console.WriteLine("returned x value " + vec3.X.ToString()); | 109 | // Console.WriteLine("returned x value " + vec3.X.ToString()); |
@@ -114,7 +116,7 @@ namespace OpenSim.Scripting.EmbeddedJVM | |||
114 | if (bs1 is Int) | 116 | if (bs1 is Int) |
115 | { | 117 | { |
116 | //should get the position of the entity from the IScriptAPI | 118 | //should get the position of the entity from the IScriptAPI |
117 | OSVector3 vec3 = Thread.OpenSimScriptAPI.GetEntityPosition((uint)((Int)bs1).mValue); | 119 | LLVector3 vec3 = Thread.OpenSimScriptAPI.GetEntityPosition((uint)((Int)bs1).mValue); |
118 | Float pos = new Float(); | 120 | Float pos = new Float(); |
119 | pos.mValue = vec3.Y; | 121 | pos.mValue = vec3.Y; |
120 | this._mThread.currentFrame.OpStack.Push(pos); | 122 | this._mThread.currentFrame.OpStack.Push(pos); |
@@ -126,7 +128,7 @@ namespace OpenSim.Scripting.EmbeddedJVM | |||
126 | if (bs1 is Int) | 128 | if (bs1 is Int) |
127 | { | 129 | { |
128 | //should get the position of the entity from the IScriptAPI | 130 | //should get the position of the entity from the IScriptAPI |
129 | OSVector3 vec3 = Thread.OpenSimScriptAPI.GetEntityPosition((uint)((Int)bs1).mValue); | 131 | LLVector3 vec3 = Thread.OpenSimScriptAPI.GetEntityPosition((uint)((Int)bs1).mValue); |
130 | Float pos = new Float(); | 132 | Float pos = new Float(); |
131 | pos.mValue = vec3.Z; | 133 | pos.mValue = vec3.Z; |
132 | this._mThread.currentFrame.OpStack.Push(pos); | 134 | this._mThread.currentFrame.OpStack.Push(pos); |