diff options
author | Sean Dague | 2007-09-13 11:41:42 +0000 |
---|---|---|
committer | Sean Dague | 2007-09-13 11:41:42 +0000 |
commit | afea5f22055fd645e95c4e1dcad01e68716fa049 (patch) | |
tree | 73dbc6fff4cba36c559234b66d24c84e00f3f162 /OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs | |
parent | adding eol-style attributes on new files (diff) | |
download | opensim-SC_OLD-afea5f22055fd645e95c4e1dcad01e68716fa049.zip opensim-SC_OLD-afea5f22055fd645e95c4e1dcad01e68716fa049.tar.gz opensim-SC_OLD-afea5f22055fd645e95c4e1dcad01e68716fa049.tar.bz2 opensim-SC_OLD-afea5f22055fd645e95c4e1dcad01e68716fa049.tar.xz |
remove ^M, as native storage should be UNIX format, and ^M in/out mashing
will happen on the windows side now that eol-style is correct
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs | 1540 |
1 files changed, 770 insertions, 770 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs index 8f9f4e9..c98da48 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs | |||
@@ -1,770 +1,770 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using libsecondlife; | 4 | using libsecondlife; |
5 | using OpenSim.Region.Environment.Scenes; | 5 | using OpenSim.Region.Environment.Scenes; |
6 | using OpenSim.Region.Environment.Scenes.Scripting; | 6 | using OpenSim.Region.Environment.Scenes.Scripting; |
7 | using OpenSim.Region.Environment.Interfaces; | 7 | using OpenSim.Region.Environment.Interfaces; |
8 | using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler; | 8 | using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler; |
9 | using OpenSim.Region.ScriptEngine.Common; | 9 | using OpenSim.Region.ScriptEngine.Common; |
10 | using OpenSim.Framework.Console; | 10 | using OpenSim.Framework.Console; |
11 | using OpenSim.Framework.Utilities; | 11 | using OpenSim.Framework.Utilities; |
12 | using System.Runtime.Remoting.Lifetime; | 12 | using System.Runtime.Remoting.Lifetime; |
13 | 13 | ||
14 | namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler | 14 | namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler |
15 | { | 15 | { |
16 | 16 | ||
17 | /// <summary> | 17 | /// <summary> |
18 | /// Contains all LSL ll-functions. This class will be in Default AppDomain. | 18 | /// Contains all LSL ll-functions. This class will be in Default AppDomain. |
19 | /// </summary> | 19 | /// </summary> |
20 | public class LSL_BuiltIn_Commands: MarshalByRefObject, LSL_BuiltIn_Commands_Interface | 20 | public class LSL_BuiltIn_Commands: MarshalByRefObject, LSL_BuiltIn_Commands_Interface |
21 | { | 21 | { |
22 | 22 | ||
23 | private System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); | 23 | private System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); |
24 | private ScriptEngine m_ScriptEngine; | 24 | private ScriptEngine m_ScriptEngine; |
25 | private IScriptHost m_host; | 25 | private IScriptHost m_host; |
26 | private uint m_localID; | 26 | private uint m_localID; |
27 | private LLUUID m_itemID; | 27 | private LLUUID m_itemID; |
28 | 28 | ||
29 | public LSL_BuiltIn_Commands(ScriptEngine ScriptEngine, IScriptHost host, uint localID, LLUUID itemID) | 29 | public LSL_BuiltIn_Commands(ScriptEngine ScriptEngine, IScriptHost host, uint localID, LLUUID itemID) |
30 | { | 30 | { |
31 | m_ScriptEngine = ScriptEngine; | 31 | m_ScriptEngine = ScriptEngine; |
32 | m_host = host; | 32 | m_host = host; |
33 | m_localID = localID; | 33 | m_localID = localID; |
34 | m_itemID = itemID; | 34 | m_itemID = itemID; |
35 | 35 | ||
36 | 36 | ||
37 | //MainLog.Instance.Notice("ScriptEngine", "LSL_BaseClass.Start() called. Hosted by [" + m_host.Name + ":" + m_host.UUID + "@" + m_host.AbsolutePosition + "]"); | 37 | //MainLog.Instance.Notice("ScriptEngine", "LSL_BaseClass.Start() called. Hosted by [" + m_host.Name + ":" + m_host.UUID + "@" + m_host.AbsolutePosition + "]"); |
38 | } | 38 | } |
39 | 39 | ||
40 | 40 | ||
41 | private string m_state = "default"; | 41 | private string m_state = "default"; |
42 | 42 | ||
43 | public string State() | 43 | public string State() |
44 | { | 44 | { |
45 | return m_state; | 45 | return m_state; |
46 | } | 46 | } |
47 | 47 | ||
48 | // Object never expires | 48 | // Object never expires |
49 | public override Object InitializeLifetimeService() | 49 | public override Object InitializeLifetimeService() |
50 | { | 50 | { |
51 | //Console.WriteLine("LSL_BuiltIn_Commands: InitializeLifetimeService()"); | 51 | //Console.WriteLine("LSL_BuiltIn_Commands: InitializeLifetimeService()"); |
52 | // return null; | 52 | // return null; |
53 | ILease lease = (ILease)base.InitializeLifetimeService(); | 53 | ILease lease = (ILease)base.InitializeLifetimeService(); |
54 | 54 | ||
55 | if (lease.CurrentState == LeaseState.Initial) | 55 | if (lease.CurrentState == LeaseState.Initial) |
56 | { | 56 | { |
57 | lease.InitialLeaseTime = TimeSpan.Zero; // TimeSpan.FromMinutes(1); | 57 | lease.InitialLeaseTime = TimeSpan.Zero; // TimeSpan.FromMinutes(1); |
58 | // lease.SponsorshipTimeout = TimeSpan.FromMinutes(2); | 58 | // lease.SponsorshipTimeout = TimeSpan.FromMinutes(2); |
59 | // lease.RenewOnCallTime = TimeSpan.FromSeconds(2); | 59 | // lease.RenewOnCallTime = TimeSpan.FromSeconds(2); |
60 | } | 60 | } |
61 | return lease; | 61 | return lease; |
62 | } | 62 | } |
63 | 63 | ||
64 | 64 | ||
65 | public Scene World | 65 | public Scene World |
66 | { | 66 | { |
67 | get { return m_ScriptEngine.World; } | 67 | get { return m_ScriptEngine.World; } |
68 | } | 68 | } |
69 | 69 | ||
70 | //These are the implementations of the various ll-functions used by the LSL scripts. | 70 | //These are the implementations of the various ll-functions used by the LSL scripts. |
71 | //starting out, we use the System.Math library for trig functions. - ckrinke 8-14-07 | 71 | //starting out, we use the System.Math library for trig functions. - ckrinke 8-14-07 |
72 | public double llSin(double f) { return (double)Math.Sin(f); } | 72 | public double llSin(double f) { return (double)Math.Sin(f); } |
73 | public double llCos(double f) { return (double)Math.Cos(f); } | 73 | public double llCos(double f) { return (double)Math.Cos(f); } |
74 | public double llTan(double f) { return (double)Math.Tan(f); } | 74 | public double llTan(double f) { return (double)Math.Tan(f); } |
75 | public double llAtan2(double x, double y) { return (double)Math.Atan2(y, x); } | 75 | public double llAtan2(double x, double y) { return (double)Math.Atan2(y, x); } |
76 | public double llSqrt(double f) { return (double)Math.Sqrt(f); } | 76 | public double llSqrt(double f) { return (double)Math.Sqrt(f); } |
77 | public double llPow(double fbase, double fexponent) { return (double)Math.Pow(fbase, fexponent); } | 77 | public double llPow(double fbase, double fexponent) { return (double)Math.Pow(fbase, fexponent); } |
78 | public int llAbs(int i) { return (int)Math.Abs(i); } | 78 | public int llAbs(int i) { return (int)Math.Abs(i); } |
79 | public double llFabs(double f) { return (double)Math.Abs(f); } | 79 | public double llFabs(double f) { return (double)Math.Abs(f); } |
80 | 80 | ||
81 | public double llFrand(double mag) | 81 | public double llFrand(double mag) |
82 | { | 82 | { |
83 | lock (Util.RandomClass) | 83 | lock (Util.RandomClass) |
84 | { | 84 | { |
85 | return Util.RandomClass.Next((int)mag); | 85 | return Util.RandomClass.Next((int)mag); |
86 | } | 86 | } |
87 | } | 87 | } |
88 | 88 | ||
89 | public int llFloor(double f) { return (int)Math.Floor(f); } | 89 | public int llFloor(double f) { return (int)Math.Floor(f); } |
90 | public int llCeil(double f) { return (int)Math.Ceiling(f); } | 90 | public int llCeil(double f) { return (int)Math.Ceiling(f); } |
91 | public int llRound(double f) { return (int)Math.Round(f, 3); } | 91 | public int llRound(double f) { return (int)Math.Round(f, 3); } |
92 | 92 | ||
93 | //This next group are vector operations involving squaring and square root. ckrinke | 93 | //This next group are vector operations involving squaring and square root. ckrinke |
94 | public double llVecMag(LSL_Types.Vector3 v) | 94 | public double llVecMag(LSL_Types.Vector3 v) |
95 | { | 95 | { |
96 | return (v.X*v.X + v.Y*v.Y + v.Z*v.Z); | 96 | return (v.X*v.X + v.Y*v.Y + v.Z*v.Z); |
97 | } | 97 | } |
98 | 98 | ||
99 | public LSL_Types.Vector3 llVecNorm(LSL_Types.Vector3 v) | 99 | public LSL_Types.Vector3 llVecNorm(LSL_Types.Vector3 v) |
100 | { | 100 | { |
101 | double mag = v.X * v.X + v.Y * v.Y + v.Z * v.Z; | 101 | double mag = v.X * v.X + v.Y * v.Y + v.Z * v.Z; |
102 | LSL_Types.Vector3 nor = new LSL_Types.Vector3(); | 102 | LSL_Types.Vector3 nor = new LSL_Types.Vector3(); |
103 | nor.X = v.X / mag; nor.Y = v.Y / mag; nor.Z = v.Z / mag; | 103 | nor.X = v.X / mag; nor.Y = v.Y / mag; nor.Z = v.Z / mag; |
104 | return nor; | 104 | return nor; |
105 | } | 105 | } |
106 | 106 | ||
107 | public double llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b) | 107 | public double llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b) |
108 | { | 108 | { |
109 | double dx = a.X - b.X; double dy = a.Y - b.Y; double dz = a.Z - b.Z; | 109 | double dx = a.X - b.X; double dy = a.Y - b.Y; double dz = a.Z - b.Z; |
110 | return Math.Sqrt(dx * dx + dy * dy + dz * dz); | 110 | return Math.Sqrt(dx * dx + dy * dy + dz * dz); |
111 | } | 111 | } |
112 | 112 | ||
113 | //Now we start getting into quaternions which means sin/cos, matrices and vectors. ckrinke | 113 | //Now we start getting into quaternions which means sin/cos, matrices and vectors. ckrinke |
114 | public LSL_Types.Vector3 llRot2Euler(LSL_Types.Quaternion r) | 114 | public LSL_Types.Vector3 llRot2Euler(LSL_Types.Quaternion r) |
115 | { | 115 | { |
116 | //This implementation is from http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryRotationFunctions. ckrinke | 116 | //This implementation is from http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryRotationFunctions. ckrinke |
117 | LSL_Types.Quaternion t = new LSL_Types.Quaternion(r.X * r.X, r.Y * r.Y, r.Z * r.Z, r.R * r.R); | 117 | LSL_Types.Quaternion t = new LSL_Types.Quaternion(r.X * r.X, r.Y * r.Y, r.Z * r.Z, r.R * r.R); |
118 | double m = (t.X + t.Y + t.Z + t.R); | 118 | double m = (t.X + t.Y + t.Z + t.R); |
119 | if (m == 0) return new LSL_Types.Vector3(); | 119 | if (m == 0) return new LSL_Types.Vector3(); |
120 | double n = 2 * (r.Y * r.R + r.X * r.Z); | 120 | double n = 2 * (r.Y * r.R + r.X * r.Z); |
121 | double p = m * m - n * n; | 121 | double p = m * m - n * n; |
122 | if (p > 0) | 122 | if (p > 0) |
123 | return new LSL_Types.Vector3(Math.Atan2(2.0 * (r.X*r.R - r.Y*r.Z),(-t.X - t.Y + t.Z + t.R)), | 123 | return new LSL_Types.Vector3(Math.Atan2(2.0 * (r.X*r.R - r.Y*r.Z),(-t.X - t.Y + t.Z + t.R)), |
124 | Math.Atan2(n,Math.Sqrt(p)), Math.Atan2(2.0 * (r.Z*r.R - r.X*r.Y),( t.X - t.Y - t.Z + t.R))); | 124 | Math.Atan2(n,Math.Sqrt(p)), Math.Atan2(2.0 * (r.Z*r.R - r.X*r.Y),( t.X - t.Y - t.Z + t.R))); |
125 | else if(n>0) | 125 | else if(n>0) |
126 | return new LSL_Types.Vector3( 0.0, Math.PI/2, Math.Atan2((r.Z*r.R + r.X*r.Y), 0.5 - t.X - t.Z)); | 126 | return new LSL_Types.Vector3( 0.0, Math.PI/2, Math.Atan2((r.Z*r.R + r.X*r.Y), 0.5 - t.X - t.Z)); |
127 | else | 127 | else |
128 | return new LSL_Types.Vector3( 0.0, -Math.PI/2, Math.Atan2((r.Z*r.R + r.X*r.Y), 0.5 - t.X - t.Z)); | 128 | return new LSL_Types.Vector3( 0.0, -Math.PI/2, Math.Atan2((r.Z*r.R + r.X*r.Y), 0.5 - t.X - t.Z)); |
129 | } | 129 | } |
130 | 130 | ||
131 | public LSL_Types.Quaternion llEuler2Rot(LSL_Types.Vector3 v) | 131 | public LSL_Types.Quaternion llEuler2Rot(LSL_Types.Vector3 v) |
132 | { | 132 | { |
133 | //this comes from from http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryRotationFunctions but is incomplete as of 8/19/07 | 133 | //this comes from from http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryRotationFunctions but is incomplete as of 8/19/07 |
134 | float err = 0.00001f; | 134 | float err = 0.00001f; |
135 | double ax = Math.Sin(v.X / 2); double aw = Math.Cos(v.X / 2); | 135 | double ax = Math.Sin(v.X / 2); double aw = Math.Cos(v.X / 2); |
136 | double by = Math.Sin(v.Y / 2); double bw = Math.Cos(v.Y / 2); | 136 | double by = Math.Sin(v.Y / 2); double bw = Math.Cos(v.Y / 2); |
137 | double cz = Math.Sin(v.Z / 2); double cw = Math.Cos(v.Z / 2); | 137 | double cz = Math.Sin(v.Z / 2); double cw = Math.Cos(v.Z / 2); |
138 | LSL_Types.Quaternion a1 = new LSL_Types.Quaternion(0.0, 0.0, cz, cw); | 138 | LSL_Types.Quaternion a1 = new LSL_Types.Quaternion(0.0, 0.0, cz, cw); |
139 | LSL_Types.Quaternion a2 = new LSL_Types.Quaternion(0.0, by, 0.0, bw); | 139 | LSL_Types.Quaternion a2 = new LSL_Types.Quaternion(0.0, by, 0.0, bw); |
140 | LSL_Types.Quaternion a3 = new LSL_Types.Quaternion(ax, 0.0, 0.0, aw); | 140 | LSL_Types.Quaternion a3 = new LSL_Types.Quaternion(ax, 0.0, 0.0, aw); |
141 | LSL_Types.Quaternion a = new LSL_Types.Quaternion(); | 141 | LSL_Types.Quaternion a = new LSL_Types.Quaternion(); |
142 | //This multiplication doesnt compile, yet. a = a1 * a2 * a3; | 142 | //This multiplication doesnt compile, yet. a = a1 * a2 * a3; |
143 | LSL_Types.Quaternion b = new LSL_Types.Quaternion(ax * bw * cw + aw * by * cz, | 143 | LSL_Types.Quaternion b = new LSL_Types.Quaternion(ax * bw * cw + aw * by * cz, |
144 | aw * by * cw - ax * bw * cz, aw * bw * cz + ax * by * cw, aw * bw * cw - ax * by * cz); | 144 | aw * by * cw - ax * bw * cz, aw * bw * cz + ax * by * cw, aw * bw * cw - ax * by * cz); |
145 | LSL_Types.Quaternion c = new LSL_Types.Quaternion(); | 145 | LSL_Types.Quaternion c = new LSL_Types.Quaternion(); |
146 | //This addition doesnt compile yet c = a + b; | 146 | //This addition doesnt compile yet c = a + b; |
147 | LSL_Types.Quaternion d = new LSL_Types.Quaternion(); | 147 | LSL_Types.Quaternion d = new LSL_Types.Quaternion(); |
148 | //This addition doesnt compile yet d = a - b; | 148 | //This addition doesnt compile yet d = a - b; |
149 | if ((Math.Abs(c.X) > err && Math.Abs(d.X) > err) || | 149 | if ((Math.Abs(c.X) > err && Math.Abs(d.X) > err) || |
150 | (Math.Abs(c.Y) > err && Math.Abs(d.Y) > err) || | 150 | (Math.Abs(c.Y) > err && Math.Abs(d.Y) > err) || |
151 | (Math.Abs(c.Z) > err && Math.Abs(d.Z) > err) || | 151 | (Math.Abs(c.Z) > err && Math.Abs(d.Z) > err) || |
152 | (Math.Abs(c.R) > err && Math.Abs(d.R) > err)) | 152 | (Math.Abs(c.R) > err && Math.Abs(d.R) > err)) |
153 | { | 153 | { |
154 | //return a new Quaternion that is null until I figure this out | 154 | //return a new Quaternion that is null until I figure this out |
155 | // return b; | 155 | // return b; |
156 | // return a; | 156 | // return a; |
157 | } | 157 | } |
158 | return new LSL_Types.Quaternion(); | 158 | return new LSL_Types.Quaternion(); |
159 | } | 159 | } |
160 | 160 | ||
161 | public LSL_Types.Quaternion llAxes2Rot(LSL_Types.Vector3 fwd, LSL_Types.Vector3 left, LSL_Types.Vector3 up) { return new LSL_Types.Quaternion(); } | 161 | public LSL_Types.Quaternion llAxes2Rot(LSL_Types.Vector3 fwd, LSL_Types.Vector3 left, LSL_Types.Vector3 up) { return new LSL_Types.Quaternion(); } |
162 | public LSL_Types.Vector3 llRot2Fwd(LSL_Types.Quaternion r) { return new LSL_Types.Vector3(); } | 162 | public LSL_Types.Vector3 llRot2Fwd(LSL_Types.Quaternion r) { return new LSL_Types.Vector3(); } |
163 | public LSL_Types.Vector3 llRot2Left(LSL_Types.Quaternion r) { return new LSL_Types.Vector3(); } | 163 | public LSL_Types.Vector3 llRot2Left(LSL_Types.Quaternion r) { return new LSL_Types.Vector3(); } |
164 | public LSL_Types.Vector3 llRot2Up(LSL_Types.Quaternion r) { return new LSL_Types.Vector3(); } | 164 | public LSL_Types.Vector3 llRot2Up(LSL_Types.Quaternion r) { return new LSL_Types.Vector3(); } |
165 | public LSL_Types.Quaternion llRotBetween(LSL_Types.Vector3 start, LSL_Types.Vector3 end) { return new LSL_Types.Quaternion(); } | 165 | public LSL_Types.Quaternion llRotBetween(LSL_Types.Vector3 start, LSL_Types.Vector3 end) { return new LSL_Types.Quaternion(); } |
166 | 166 | ||
167 | public void llWhisper(int channelID, string text) | 167 | public void llWhisper(int channelID, string text) |
168 | { | 168 | { |
169 | //type for whisper is 0 | 169 | //type for whisper is 0 |
170 | World.SimChat(Helpers.StringToField(text), | 170 | World.SimChat(Helpers.StringToField(text), |
171 | 0, m_host.AbsolutePosition, m_host.Name, m_host.UUID); | 171 | 0, m_host.AbsolutePosition, m_host.Name, m_host.UUID); |
172 | } | 172 | } |
173 | 173 | ||
174 | public void llSay(int channelID, string text) | 174 | public void llSay(int channelID, string text) |
175 | { | 175 | { |
176 | //type for say is 1 | 176 | //type for say is 1 |
177 | 177 | ||
178 | World.SimChat(Helpers.StringToField(text), | 178 | World.SimChat(Helpers.StringToField(text), |
179 | 1, m_host.AbsolutePosition, m_host.Name, m_host.UUID); | 179 | 1, m_host.AbsolutePosition, m_host.Name, m_host.UUID); |
180 | } | 180 | } |
181 | 181 | ||
182 | public void llShout(int channelID, string text) | 182 | public void llShout(int channelID, string text) |
183 | { | 183 | { |
184 | //type for shout is 2 | 184 | //type for shout is 2 |
185 | World.SimChat(Helpers.StringToField(text), | 185 | World.SimChat(Helpers.StringToField(text), |
186 | 2, m_host.AbsolutePosition, m_host.Name, m_host.UUID); | 186 | 2, m_host.AbsolutePosition, m_host.Name, m_host.UUID); |
187 | } | 187 | } |
188 | 188 | ||
189 | public int llListen(int channelID, string name, string ID, string msg) { return 0; } | 189 | public int llListen(int channelID, string name, string ID, string msg) { return 0; } |
190 | public void llListenControl(int number, int active) { return; } | 190 | public void llListenControl(int number, int active) { return; } |
191 | public void llListenRemove(int number) { return; } | 191 | public void llListenRemove(int number) { return; } |
192 | public void llSensor(string name, string id, int type, double range, double arc) { return; } | 192 | public void llSensor(string name, string id, int type, double range, double arc) { return; } |
193 | public void llSensorRepeat(string name, string id, int type, double range, double arc, double rate) { return; } | 193 | public void llSensorRepeat(string name, string id, int type, double range, double arc, double rate) { return; } |
194 | public void llSensorRemove() { return; } | 194 | public void llSensorRemove() { return; } |
195 | public string llDetectedName(int number) { return ""; } | 195 | public string llDetectedName(int number) { return ""; } |
196 | public string llDetectedKey(int number) { return ""; } | 196 | public string llDetectedKey(int number) { return ""; } |
197 | public string llDetectedOwner(int number) { return ""; } | 197 | public string llDetectedOwner(int number) { return ""; } |
198 | public int llDetectedType(int number) { return 0; } | 198 | public int llDetectedType(int number) { return 0; } |
199 | public LSL_Types.Vector3 llDetectedPos(int number) { return new LSL_Types.Vector3(); } | 199 | public LSL_Types.Vector3 llDetectedPos(int number) { return new LSL_Types.Vector3(); } |
200 | public LSL_Types.Vector3 llDetectedVel(int number) { return new LSL_Types.Vector3(); } | 200 | public LSL_Types.Vector3 llDetectedVel(int number) { return new LSL_Types.Vector3(); } |
201 | public LSL_Types.Vector3 llDetectedGrab(int number) { return new LSL_Types.Vector3(); } | 201 | public LSL_Types.Vector3 llDetectedGrab(int number) { return new LSL_Types.Vector3(); } |
202 | public LSL_Types.Quaternion llDetectedRot(int number) { return new LSL_Types.Quaternion(); } | 202 | public LSL_Types.Quaternion llDetectedRot(int number) { return new LSL_Types.Quaternion(); } |
203 | public int llDetectedGroup(int number) { return 0; } | 203 | public int llDetectedGroup(int number) { return 0; } |
204 | public int llDetectedLinkNumber(int number) { return 0; } | 204 | public int llDetectedLinkNumber(int number) { return 0; } |
205 | public void llDie() { return; } | 205 | public void llDie() { return; } |
206 | public double llGround(LSL_Types.Vector3 offset) { return 0; } | 206 | public double llGround(LSL_Types.Vector3 offset) { return 0; } |
207 | public double llCloud(LSL_Types.Vector3 offset) { return 0; } | 207 | public double llCloud(LSL_Types.Vector3 offset) { return 0; } |
208 | public LSL_Types.Vector3 llWind(LSL_Types.Vector3 offset) { return new LSL_Types.Vector3(); } | 208 | public LSL_Types.Vector3 llWind(LSL_Types.Vector3 offset) { return new LSL_Types.Vector3(); } |
209 | public void llSetStatus(int status, int value) { return; } | 209 | public void llSetStatus(int status, int value) { return; } |
210 | public int llGetStatus(int status) { return 0; } | 210 | public int llGetStatus(int status) { return 0; } |
211 | public void llSetScale(LSL_Types.Vector3 scale) { return; } | 211 | public void llSetScale(LSL_Types.Vector3 scale) { return; } |
212 | public LSL_Types.Vector3 llGetScale() { return new LSL_Types.Vector3(); } | 212 | public LSL_Types.Vector3 llGetScale() { return new LSL_Types.Vector3(); } |
213 | public void llSetColor(LSL_Types.Vector3 color, int face) { return; } | 213 | public void llSetColor(LSL_Types.Vector3 color, int face) { return; } |
214 | public double llGetAlpha(int face) { return 0; } | 214 | public double llGetAlpha(int face) { return 0; } |
215 | public void llSetAlpha(double alpha, int face) { return; } | 215 | public void llSetAlpha(double alpha, int face) { return; } |
216 | public LSL_Types.Vector3 llGetColor(int face) { return new LSL_Types.Vector3(); } | 216 | public LSL_Types.Vector3 llGetColor(int face) { return new LSL_Types.Vector3(); } |
217 | public void llSetTexture(string texture, int face) { return; } | 217 | public void llSetTexture(string texture, int face) { return; } |
218 | public void llScaleTexture(double u, double v, int face) { return; } | 218 | public void llScaleTexture(double u, double v, int face) { return; } |
219 | public void llOffsetTexture(double u, double v, int face) { return; } | 219 | public void llOffsetTexture(double u, double v, int face) { return; } |
220 | public void llRotateTexture(double rotation, int face) { return; } | 220 | public void llRotateTexture(double rotation, int face) { return; } |
221 | 221 | ||
222 | public string llGetTexture(int face) | 222 | public string llGetTexture(int face) |
223 | { | 223 | { |
224 | return ""; | 224 | return ""; |
225 | } | 225 | } |
226 | 226 | ||
227 | public void llSetPos(LSL_Types.Vector3 pos) { return; } | 227 | public void llSetPos(LSL_Types.Vector3 pos) { return; } |
228 | 228 | ||
229 | public LSL_Types.Vector3 llGetPos() | 229 | public LSL_Types.Vector3 llGetPos() |
230 | { | 230 | { |
231 | throw new NotImplementedException("llGetPos"); | 231 | throw new NotImplementedException("llGetPos"); |
232 | // return m_host.AbsolutePosition; | 232 | // return m_host.AbsolutePosition; |
233 | } | 233 | } |
234 | 234 | ||
235 | public LSL_Types.Vector3 llGetLocalPos() { return new LSL_Types.Vector3(); } | 235 | public LSL_Types.Vector3 llGetLocalPos() { return new LSL_Types.Vector3(); } |
236 | public void llSetRot(LSL_Types.Quaternion rot) { } | 236 | public void llSetRot(LSL_Types.Quaternion rot) { } |
237 | public LSL_Types.Quaternion llGetRot() { return new LSL_Types.Quaternion(); } | 237 | public LSL_Types.Quaternion llGetRot() { return new LSL_Types.Quaternion(); } |
238 | public LSL_Types.Quaternion llGetLocalRot() { return new LSL_Types.Quaternion(); } | 238 | public LSL_Types.Quaternion llGetLocalRot() { return new LSL_Types.Quaternion(); } |
239 | public void llSetForce(LSL_Types.Vector3 force, int local) { } | 239 | public void llSetForce(LSL_Types.Vector3 force, int local) { } |
240 | public LSL_Types.Vector3 llGetForce() { return new LSL_Types.Vector3(); } | 240 | public LSL_Types.Vector3 llGetForce() { return new LSL_Types.Vector3(); } |
241 | public int llTarget(LSL_Types.Vector3 position, double range) { return 0; } | 241 | public int llTarget(LSL_Types.Vector3 position, double range) { return 0; } |
242 | public void llTargetRemove(int number) { } | 242 | public void llTargetRemove(int number) { } |
243 | public int llRotTarget(LSL_Types.Quaternion rot, double error) { return 0; } | 243 | public int llRotTarget(LSL_Types.Quaternion rot, double error) { return 0; } |
244 | public void llRotTargetRemove(int number) { } | 244 | public void llRotTargetRemove(int number) { } |
245 | public void llMoveToTarget(LSL_Types.Vector3 target, double tau) { } | 245 | public void llMoveToTarget(LSL_Types.Vector3 target, double tau) { } |
246 | public void llStopMoveToTarget() { } | 246 | public void llStopMoveToTarget() { } |
247 | public void llApplyImpulse(LSL_Types.Vector3 force, int local) { } | 247 | public void llApplyImpulse(LSL_Types.Vector3 force, int local) { } |
248 | public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) { } | 248 | public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) { } |
249 | public void llSetTorque(LSL_Types.Vector3 torque, int local) { } | 249 | public void llSetTorque(LSL_Types.Vector3 torque, int local) { } |
250 | public LSL_Types.Vector3 llGetTorque() { return new LSL_Types.Vector3(); } | 250 | public LSL_Types.Vector3 llGetTorque() { return new LSL_Types.Vector3(); } |
251 | public void llSetForceAndTorque(LSL_Types.Vector3 force, LSL_Types.Vector3 torque, int local) { } | 251 | public void llSetForceAndTorque(LSL_Types.Vector3 force, LSL_Types.Vector3 torque, int local) { } |
252 | public LSL_Types.Vector3 llGetVel() { return new LSL_Types.Vector3(); } | 252 | public LSL_Types.Vector3 llGetVel() { return new LSL_Types.Vector3(); } |
253 | public LSL_Types.Vector3 llGetAccel() { return new LSL_Types.Vector3(); } | 253 | public LSL_Types.Vector3 llGetAccel() { return new LSL_Types.Vector3(); } |
254 | public LSL_Types.Vector3 llGetOmega() { return new LSL_Types.Vector3(); } | 254 | public LSL_Types.Vector3 llGetOmega() { return new LSL_Types.Vector3(); } |
255 | public double llGetTimeOfDay() { return 0; } | 255 | public double llGetTimeOfDay() { return 0; } |
256 | 256 | ||
257 | public double llGetWallclock() | 257 | public double llGetWallclock() |
258 | { | 258 | { |
259 | return DateTime.Now.TimeOfDay.TotalSeconds; | 259 | return DateTime.Now.TimeOfDay.TotalSeconds; |
260 | } | 260 | } |
261 | 261 | ||
262 | public double llGetTime() { return 0; } | 262 | public double llGetTime() { return 0; } |
263 | public void llResetTime() { } | 263 | public void llResetTime() { } |
264 | public double llGetAndResetTime() { return 0; } | 264 | public double llGetAndResetTime() { return 0; } |
265 | public void llSound() { } | 265 | public void llSound() { } |
266 | public void llPlaySound(string sound, double volume) { } | 266 | public void llPlaySound(string sound, double volume) { } |
267 | public void llLoopSound(string sound, double volume) { } | 267 | public void llLoopSound(string sound, double volume) { } |
268 | public void llLoopSoundMaster(string sound, double volume) { } | 268 | public void llLoopSoundMaster(string sound, double volume) { } |
269 | public void llLoopSoundSlave(string sound, double volume) { } | 269 | public void llLoopSoundSlave(string sound, double volume) { } |
270 | public void llPlaySoundSlave(string sound, double volume) { } | 270 | public void llPlaySoundSlave(string sound, double volume) { } |
271 | public void llTriggerSound(string sound, double volume) { } | 271 | public void llTriggerSound(string sound, double volume) { } |
272 | public void llStopSound() { } | 272 | public void llStopSound() { } |
273 | public void llPreloadSound(string sound) { } | 273 | public void llPreloadSound(string sound) { } |
274 | 274 | ||
275 | public string llGetSubString(string src, int start, int end) | 275 | public string llGetSubString(string src, int start, int end) |
276 | { | 276 | { |
277 | return src.Substring(start, end); | 277 | return src.Substring(start, end); |
278 | } | 278 | } |
279 | 279 | ||
280 | public string llDeleteSubString(string src, int start, int end) {return "";} | 280 | public string llDeleteSubString(string src, int start, int end) {return "";} |
281 | public string llInsertString(string dst, int position, string src) { return ""; } | 281 | public string llInsertString(string dst, int position, string src) { return ""; } |
282 | 282 | ||
283 | public string llToUpper(string src) | 283 | public string llToUpper(string src) |
284 | { | 284 | { |
285 | return src.ToUpper(); | 285 | return src.ToUpper(); |
286 | } | 286 | } |
287 | 287 | ||
288 | public string llToLower(string src) | 288 | public string llToLower(string src) |
289 | { | 289 | { |
290 | return src.ToLower(); | 290 | return src.ToLower(); |
291 | } | 291 | } |
292 | 292 | ||
293 | public int llGiveMoney(string destination, int amount) { return 0; } | 293 | public int llGiveMoney(string destination, int amount) { return 0; } |
294 | public void llMakeExplosion() { } | 294 | public void llMakeExplosion() { } |
295 | public void llMakeFountain() { } | 295 | public void llMakeFountain() { } |
296 | public void llMakeSmoke() { } | 296 | public void llMakeSmoke() { } |
297 | public void llMakeFire() { } | 297 | public void llMakeFire() { } |
298 | public void llRezObject(string inventory, LSL_Types.Vector3 pos, LSL_Types.Quaternion rot, int param) { } | 298 | public void llRezObject(string inventory, LSL_Types.Vector3 pos, LSL_Types.Quaternion rot, int param) { } |
299 | public void llLookAt(LSL_Types.Vector3 target, double strength, double damping) { } | 299 | public void llLookAt(LSL_Types.Vector3 target, double strength, double damping) { } |
300 | public void llStopLookAt() { } | 300 | public void llStopLookAt() { } |
301 | 301 | ||
302 | public void llSetTimerEvent(double sec) | 302 | public void llSetTimerEvent(double sec) |
303 | { | 303 | { |
304 | // Setting timer repeat | 304 | // Setting timer repeat |
305 | m_ScriptEngine.m_LSLLongCmdHandler.SetTimerEvent(m_localID, m_itemID, sec); | 305 | m_ScriptEngine.m_LSLLongCmdHandler.SetTimerEvent(m_localID, m_itemID, sec); |
306 | } | 306 | } |
307 | 307 | ||
308 | public void llSleep(double sec) | 308 | public void llSleep(double sec) |
309 | { | 309 | { |
310 | System.Threading.Thread.Sleep((int)(sec * 1000)); | 310 | System.Threading.Thread.Sleep((int)(sec * 1000)); |
311 | } | 311 | } |
312 | 312 | ||
313 | public double llGetMass() { return 0; } | 313 | public double llGetMass() { return 0; } |
314 | public void llCollisionFilter(string name, string id, int accept) { } | 314 | public void llCollisionFilter(string name, string id, int accept) { } |
315 | public void llTakeControls(int controls, int accept, int pass_on) { } | 315 | public void llTakeControls(int controls, int accept, int pass_on) { } |
316 | public void llReleaseControls() { } | 316 | public void llReleaseControls() { } |
317 | public void llAttachToAvatar(int attachment) { } | 317 | public void llAttachToAvatar(int attachment) { } |
318 | public void llDetachFromAvatar() { } | 318 | public void llDetachFromAvatar() { } |
319 | public void llTakeCamera() { } | 319 | public void llTakeCamera() { } |
320 | public void llReleaseCamera() { } | 320 | public void llReleaseCamera() { } |
321 | 321 | ||
322 | public string llGetOwner() | 322 | public string llGetOwner() |
323 | { | 323 | { |
324 | return m_host.ObjectOwner.ToStringHyphenated(); | 324 | return m_host.ObjectOwner.ToStringHyphenated(); |
325 | } | 325 | } |
326 | 326 | ||
327 | public void llInstantMessage(string user, string message) { } | 327 | public void llInstantMessage(string user, string message) { } |
328 | public void llEmail(string address, string subject, string message) { } | 328 | public void llEmail(string address, string subject, string message) { } |
329 | public void llGetNextEmail(string address, string subject) { } | 329 | public void llGetNextEmail(string address, string subject) { } |
330 | 330 | ||
331 | public string llGetKey() | 331 | public string llGetKey() |
332 | { | 332 | { |
333 | return m_host.UUID.ToStringHyphenated(); | 333 | return m_host.UUID.ToStringHyphenated(); |
334 | } | 334 | } |
335 | 335 | ||
336 | public void llSetBuoyancy(double buoyancy) { } | 336 | public void llSetBuoyancy(double buoyancy) { } |
337 | public void llSetHoverHeight(double height, int water, double tau) { } | 337 | public void llSetHoverHeight(double height, int water, double tau) { } |
338 | public void llStopHover() { } | 338 | public void llStopHover() { } |
339 | public void llMinEventDelay(double delay) { } | 339 | public void llMinEventDelay(double delay) { } |
340 | public void llSoundPreload() { } | 340 | public void llSoundPreload() { } |
341 | public void llRotLookAt(LSL_Types.Quaternion target, double strength, double damping) { } | 341 | public void llRotLookAt(LSL_Types.Quaternion target, double strength, double damping) { } |
342 | 342 | ||
343 | public int llStringLength(string str) | 343 | public int llStringLength(string str) |
344 | { | 344 | { |
345 | if (str.Length > 0) | 345 | if (str.Length > 0) |
346 | { | 346 | { |
347 | return str.Length; | 347 | return str.Length; |
348 | } | 348 | } |
349 | else | 349 | else |
350 | { | 350 | { |
351 | return 0; | 351 | return 0; |
352 | } | 352 | } |
353 | } | 353 | } |
354 | 354 | ||
355 | public void llStartAnimation(string anim) { } | 355 | public void llStartAnimation(string anim) { } |
356 | public void llStopAnimation(string anim) { } | 356 | public void llStopAnimation(string anim) { } |
357 | public void llPointAt() { } | 357 | public void llPointAt() { } |
358 | public void llStopPointAt() { } | 358 | public void llStopPointAt() { } |
359 | public void llTargetOmega(LSL_Types.Vector3 axis, double spinrate, double gain) { } | 359 | public void llTargetOmega(LSL_Types.Vector3 axis, double spinrate, double gain) { } |
360 | public int llGetStartParameter() { return 0; } | 360 | public int llGetStartParameter() { return 0; } |
361 | public void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos) { } | 361 | public void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos) { } |
362 | public void llRequestPermissions(string agent, int perm) { } | 362 | public void llRequestPermissions(string agent, int perm) { } |
363 | public string llGetPermissionsKey() { return ""; } | 363 | public string llGetPermissionsKey() { return ""; } |
364 | public int llGetPermissions() { return 0; } | 364 | public int llGetPermissions() { return 0; } |
365 | public int llGetLinkNumber() { return 0; } | 365 | public int llGetLinkNumber() { return 0; } |
366 | public void llSetLinkColor(int linknumber, LSL_Types.Vector3 color, int face) { } | 366 | public void llSetLinkColor(int linknumber, LSL_Types.Vector3 color, int face) { } |
367 | public void llCreateLink(string target, int parent) { } | 367 | public void llCreateLink(string target, int parent) { } |
368 | public void llBreakLink(int linknum) { } | 368 | public void llBreakLink(int linknum) { } |
369 | public void llBreakAllLinks() { } | 369 | public void llBreakAllLinks() { } |
370 | public string llGetLinkKey(int linknum) { return ""; } | 370 | public string llGetLinkKey(int linknum) { return ""; } |
371 | public void llGetLinkName(int linknum) { } | 371 | public void llGetLinkName(int linknum) { } |
372 | public int llGetInventoryNumber(int type) { return 0; } | 372 | public int llGetInventoryNumber(int type) { return 0; } |
373 | public string llGetInventoryName(int type, int number) { return ""; } | 373 | public string llGetInventoryName(int type, int number) { return ""; } |
374 | public void llSetScriptState(string name, int run) { } | 374 | public void llSetScriptState(string name, int run) { } |
375 | public double llGetEnergy() { return 1.0f; } | 375 | public double llGetEnergy() { return 1.0f; } |
376 | public void llGiveInventory(string destination, string inventory) { } | 376 | public void llGiveInventory(string destination, string inventory) { } |
377 | public void llRemoveInventory(string item) { } | 377 | public void llRemoveInventory(string item) { } |
378 | 378 | ||
379 | public void llSetText(string text, LSL_Types.Vector3 color, double alpha) | 379 | public void llSetText(string text, LSL_Types.Vector3 color, double alpha) |
380 | { | 380 | { |
381 | // TEMP DISABLED UNTIL WE CAN AGREE UPON VECTOR/ROTATION FORMAT | 381 | // TEMP DISABLED UNTIL WE CAN AGREE UPON VECTOR/ROTATION FORMAT |
382 | //m_host.SetText(text, color, alpha); | 382 | //m_host.SetText(text, color, alpha); |
383 | } | 383 | } |
384 | 384 | ||
385 | public double llWater(LSL_Types.Vector3 offset) { return 0; } | 385 | public double llWater(LSL_Types.Vector3 offset) { return 0; } |
386 | public void llPassTouches(int pass) { } | 386 | public void llPassTouches(int pass) { } |
387 | public string llRequestAgentData(string id, int data) { return ""; } | 387 | public string llRequestAgentData(string id, int data) { return ""; } |
388 | public string llRequestInventoryData(string name) { return ""; } | 388 | public string llRequestInventoryData(string name) { return ""; } |
389 | public void llSetDamage(double damage) { } | 389 | public void llSetDamage(double damage) { } |
390 | public void llTeleportAgentHome(string agent) { } | 390 | public void llTeleportAgentHome(string agent) { } |
391 | public void llModifyLand(int action, int brush) { } | 391 | public void llModifyLand(int action, int brush) { } |
392 | public void llCollisionSound(string impact_sound, double impact_volume) { } | 392 | public void llCollisionSound(string impact_sound, double impact_volume) { } |
393 | public void llCollisionSprite(string impact_sprite) { } | 393 | public void llCollisionSprite(string impact_sprite) { } |
394 | public string llGetAnimation(string id) { return ""; } | 394 | public string llGetAnimation(string id) { return ""; } |
395 | public void llResetScript() { } | 395 | public void llResetScript() { } |
396 | public void llMessageLinked(int linknum, int num, string str, string id) { } | 396 | public void llMessageLinked(int linknum, int num, string str, string id) { } |
397 | public void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local) { } | 397 | public void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local) { } |
398 | public void llPassCollisions(int pass) { } | 398 | public void llPassCollisions(int pass) { } |
399 | public string llGetScriptName() { return ""; } | 399 | public string llGetScriptName() { return ""; } |
400 | 400 | ||
401 | public int llGetNumberOfSides() { return 0; } | 401 | public int llGetNumberOfSides() { return 0; } |
402 | 402 | ||
403 | public LSL_Types.Quaternion llAxisAngle2Rot(LSL_Types.Vector3 axis, double angle) { return new LSL_Types.Quaternion(); } | 403 | public LSL_Types.Quaternion llAxisAngle2Rot(LSL_Types.Vector3 axis, double angle) { return new LSL_Types.Quaternion(); } |
404 | public LSL_Types.Vector3 llRot2Axis(LSL_Types.Quaternion rot) { return new LSL_Types.Vector3(); } | 404 | public LSL_Types.Vector3 llRot2Axis(LSL_Types.Quaternion rot) { return new LSL_Types.Vector3(); } |
405 | public void llRot2Angle() { } | 405 | public void llRot2Angle() { } |
406 | 406 | ||
407 | public double llAcos(double val) | 407 | public double llAcos(double val) |
408 | { | 408 | { |
409 | return (double)Math.Acos(val); | 409 | return (double)Math.Acos(val); |
410 | } | 410 | } |
411 | 411 | ||
412 | public double llAsin(double val) | 412 | public double llAsin(double val) |
413 | { | 413 | { |
414 | return (double)Math.Asin(val); | 414 | return (double)Math.Asin(val); |
415 | } | 415 | } |
416 | 416 | ||
417 | public double llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b) { return 0; } | 417 | public double llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b) { return 0; } |
418 | public string llGetInventoryKey(string name) { return ""; } | 418 | public string llGetInventoryKey(string name) { return ""; } |
419 | public void llAllowInventoryDrop(int add) { } | 419 | public void llAllowInventoryDrop(int add) { } |
420 | public LSL_Types.Vector3 llGetSunDirection() { return new LSL_Types.Vector3(); } | 420 | public LSL_Types.Vector3 llGetSunDirection() { return new LSL_Types.Vector3(); } |
421 | public LSL_Types.Vector3 llGetTextureOffset(int face) { return new LSL_Types.Vector3(); } | 421 | public LSL_Types.Vector3 llGetTextureOffset(int face) { return new LSL_Types.Vector3(); } |
422 | public LSL_Types.Vector3 llGetTextureScale(int side) { return new LSL_Types.Vector3(); } | 422 | public LSL_Types.Vector3 llGetTextureScale(int side) { return new LSL_Types.Vector3(); } |
423 | public double llGetTextureRot(int side) { return 0; } | 423 | public double llGetTextureRot(int side) { return 0; } |
424 | 424 | ||
425 | public int llSubStringIndex(string source, string pattern) | 425 | public int llSubStringIndex(string source, string pattern) |
426 | { | 426 | { |
427 | return source.IndexOf(pattern); | 427 | return source.IndexOf(pattern); |
428 | } | 428 | } |
429 | 429 | ||
430 | public string llGetOwnerKey(string id) | 430 | public string llGetOwnerKey(string id) |
431 | { | 431 | { |
432 | return ""; | 432 | return ""; |
433 | } | 433 | } |
434 | 434 | ||
435 | public LSL_Types.Vector3 llGetCenterOfMass() { return new LSL_Types.Vector3(); } | 435 | public LSL_Types.Vector3 llGetCenterOfMass() { return new LSL_Types.Vector3(); } |
436 | 436 | ||
437 | public List<string> llListSort(List<string> src, int stride, int ascending) | 437 | public List<string> llListSort(List<string> src, int stride, int ascending) |
438 | { | 438 | { |
439 | //List<string> nlist = src.Sort(); | 439 | //List<string> nlist = src.Sort(); |
440 | 440 | ||
441 | //if (ascending == 0) | 441 | //if (ascending == 0) |
442 | //{ | 442 | //{ |
443 | //nlist.Reverse(); | 443 | //nlist.Reverse(); |
444 | //} | 444 | //} |
445 | 445 | ||
446 | //return nlist; | 446 | //return nlist; |
447 | return new List<string>(); ; | 447 | return new List<string>(); ; |
448 | } | 448 | } |
449 | 449 | ||
450 | public int llGetListLength(List<string> src) | 450 | public int llGetListLength(List<string> src) |
451 | { | 451 | { |
452 | return src.Count; | 452 | return src.Count; |
453 | } | 453 | } |
454 | 454 | ||
455 | public int llList2Integer(List<string> src, int index) | 455 | public int llList2Integer(List<string> src, int index) |
456 | { | 456 | { |
457 | return Convert.ToInt32(src[index]); | 457 | return Convert.ToInt32(src[index]); |
458 | } | 458 | } |
459 | 459 | ||
460 | public double llList2double(List<string> src, int index) | 460 | public double llList2double(List<string> src, int index) |
461 | { | 461 | { |
462 | return Convert.ToDouble(src[index]); | 462 | return Convert.ToDouble(src[index]); |
463 | } | 463 | } |
464 | 464 | ||
465 | public float llList2Float(List<string> src, int index) | 465 | public float llList2Float(List<string> src, int index) |
466 | { | 466 | { |
467 | return Convert.ToSingle(src[index]); | 467 | return Convert.ToSingle(src[index]); |
468 | } | 468 | } |
469 | 469 | ||
470 | public string llList2String(List<string> src, int index) | 470 | public string llList2String(List<string> src, int index) |
471 | { | 471 | { |
472 | return src[index]; | 472 | return src[index]; |
473 | } | 473 | } |
474 | 474 | ||
475 | public string llList2Key(List<string> src, int index) | 475 | public string llList2Key(List<string> src, int index) |
476 | { | 476 | { |
477 | //return OpenSim.Framework.Types.ToStringHyphenated(src[index]); | 477 | //return OpenSim.Framework.Types.ToStringHyphenated(src[index]); |
478 | return ""; | 478 | return ""; |
479 | } | 479 | } |
480 | 480 | ||
481 | public LSL_Types.Vector3 llList2Vector(List<string> src, int index) | 481 | public LSL_Types.Vector3 llList2Vector(List<string> src, int index) |
482 | { return new LSL_Types.Vector3(); } | 482 | { return new LSL_Types.Vector3(); } |
483 | public LSL_Types.Quaternion llList2Rot(List<string> src, int index) | 483 | public LSL_Types.Quaternion llList2Rot(List<string> src, int index) |
484 | { return new LSL_Types.Quaternion(); } | 484 | { return new LSL_Types.Quaternion(); } |
485 | public List<string> llList2List(List<string> src, int start, int end) | 485 | public List<string> llList2List(List<string> src, int start, int end) |
486 | { return new List<string>(); } | 486 | { return new List<string>(); } |
487 | public List<string> llDeleteSubList(List<string> src, int start, int end) | 487 | public List<string> llDeleteSubList(List<string> src, int start, int end) |
488 | { return new List<string>(); } | 488 | { return new List<string>(); } |
489 | public int llGetListEntryType(List<string> src, int index) { return 0; } | 489 | public int llGetListEntryType(List<string> src, int index) { return 0; } |
490 | public string llList2CSV(List<string> src) { return ""; } | 490 | public string llList2CSV(List<string> src) { return ""; } |
491 | public List<string> llCSV2List(string src) | 491 | public List<string> llCSV2List(string src) |
492 | { return new List<string>(); } | 492 | { return new List<string>(); } |
493 | public List<string> llListRandomize(List<string> src, int stride) | 493 | public List<string> llListRandomize(List<string> src, int stride) |
494 | { return new List<string>(); } | 494 | { return new List<string>(); } |
495 | public List<string> llList2ListStrided(List<string> src, int start, int end, int stride) | 495 | public List<string> llList2ListStrided(List<string> src, int start, int end, int stride) |
496 | { return new List<string>(); } | 496 | { return new List<string>(); } |
497 | 497 | ||
498 | public LSL_Types.Vector3 llGetRegionCorner() | 498 | public LSL_Types.Vector3 llGetRegionCorner() |
499 | { | 499 | { |
500 | return new LSL_Types.Vector3(World.RegionInfo.RegionLocX * 256, World.RegionInfo.RegionLocY * 256, 0); | 500 | return new LSL_Types.Vector3(World.RegionInfo.RegionLocX * 256, World.RegionInfo.RegionLocY * 256, 0); |
501 | } | 501 | } |
502 | 502 | ||
503 | public List<string> llListInsertList(List<string> dest, List<string> src, int start) | 503 | public List<string> llListInsertList(List<string> dest, List<string> src, int start) |
504 | { return new List<string>(); } | 504 | { return new List<string>(); } |
505 | public int llListFindList(List<string> src, List<string> test) { return 0; } | 505 | public int llListFindList(List<string> src, List<string> test) { return 0; } |
506 | 506 | ||
507 | public string llGetObjectName() | 507 | public string llGetObjectName() |
508 | { | 508 | { |
509 | return m_host.Name; | 509 | return m_host.Name; |
510 | } | 510 | } |
511 | 511 | ||
512 | public void llSetObjectName(string name) | 512 | public void llSetObjectName(string name) |
513 | { | 513 | { |
514 | m_host.Name = name; | 514 | m_host.Name = name; |
515 | } | 515 | } |
516 | 516 | ||
517 | public string llGetDate() | 517 | public string llGetDate() |
518 | { | 518 | { |
519 | DateTime date = DateTime.Now.ToUniversalTime(); | 519 | DateTime date = DateTime.Now.ToUniversalTime(); |
520 | string result = date.ToString("yyyy-MM-dd"); | 520 | string result = date.ToString("yyyy-MM-dd"); |
521 | return result; | 521 | return result; |
522 | } | 522 | } |
523 | 523 | ||
524 | public int llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir) { return 0; } | 524 | public int llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir) { return 0; } |
525 | public int llGetAgentInfo(string id) { return 0; } | 525 | public int llGetAgentInfo(string id) { return 0; } |
526 | public void llAdjustSoundVolume(double volume) { } | 526 | public void llAdjustSoundVolume(double volume) { } |
527 | public void llSetSoundQueueing(int queue) { } | 527 | public void llSetSoundQueueing(int queue) { } |
528 | public void llSetSoundRadius(double radius) { } | 528 | public void llSetSoundRadius(double radius) { } |
529 | public string llKey2Name(string id) { return ""; } | 529 | public string llKey2Name(string id) { return ""; } |
530 | public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) { } | 530 | public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) { } |
531 | public void llTriggerSoundLimited(string sound, double volume, LSL_Types.Vector3 top_north_east, LSL_Types.Vector3 bottom_south_west) { } | 531 | public void llTriggerSoundLimited(string sound, double volume, LSL_Types.Vector3 top_north_east, LSL_Types.Vector3 bottom_south_west) { } |
532 | public void llEjectFromLand(string pest) { } | 532 | public void llEjectFromLand(string pest) { } |
533 | 533 | ||
534 | public void llParseString2List() { } | 534 | public void llParseString2List() { } |
535 | 535 | ||
536 | public int llOverMyLand(string id) { return 0; } | 536 | public int llOverMyLand(string id) { return 0; } |
537 | public string llGetLandOwnerAt(LSL_Types.Vector3 pos) { return ""; } | 537 | public string llGetLandOwnerAt(LSL_Types.Vector3 pos) { return ""; } |
538 | public string llGetNotecardLine(string name, int line) { return ""; } | 538 | public string llGetNotecardLine(string name, int line) { return ""; } |
539 | public LSL_Types.Vector3 llGetAgentSize(string id) { return new LSL_Types.Vector3(); } | 539 | public LSL_Types.Vector3 llGetAgentSize(string id) { return new LSL_Types.Vector3(); } |
540 | public int llSameGroup(string agent) { return 0; } | 540 | public int llSameGroup(string agent) { return 0; } |
541 | public void llUnSit(string id) { } | 541 | public void llUnSit(string id) { } |
542 | public LSL_Types.Vector3 llGroundSlope(LSL_Types.Vector3 offset) { return new LSL_Types.Vector3(); } | 542 | public LSL_Types.Vector3 llGroundSlope(LSL_Types.Vector3 offset) { return new LSL_Types.Vector3(); } |
543 | public LSL_Types.Vector3 llGroundNormal(LSL_Types.Vector3 offset) { return new LSL_Types.Vector3(); } | 543 | public LSL_Types.Vector3 llGroundNormal(LSL_Types.Vector3 offset) { return new LSL_Types.Vector3(); } |
544 | public LSL_Types.Vector3 llGroundContour(LSL_Types.Vector3 offset) { return new LSL_Types.Vector3(); } | 544 | public LSL_Types.Vector3 llGroundContour(LSL_Types.Vector3 offset) { return new LSL_Types.Vector3(); } |
545 | public int llGetAttached() { return 0; } | 545 | public int llGetAttached() { return 0; } |
546 | public int llGetFreeMemory() { return 0; } | 546 | public int llGetFreeMemory() { return 0; } |
547 | 547 | ||
548 | public string llGetRegionName() | 548 | public string llGetRegionName() |
549 | { | 549 | { |
550 | return World.RegionInfo.RegionName; | 550 | return World.RegionInfo.RegionName; |
551 | } | 551 | } |
552 | 552 | ||
553 | public double llGetRegionTimeDilation() { return 1.0f; } | 553 | public double llGetRegionTimeDilation() { return 1.0f; } |
554 | public double llGetRegionFPS() { return 10.0f; } | 554 | public double llGetRegionFPS() { return 10.0f; } |
555 | public void llParticleSystem(List<Object> rules) { } | 555 | public void llParticleSystem(List<Object> rules) { } |
556 | public void llGroundRepel(double height, int water, double tau) { } | 556 | public void llGroundRepel(double height, int water, double tau) { } |
557 | public void llGiveInventoryList() { } | 557 | public void llGiveInventoryList() { } |
558 | public void llSetVehicleType(int type) { } | 558 | public void llSetVehicleType(int type) { } |
559 | public void llSetVehicledoubleParam(int param, double value) { } | 559 | public void llSetVehicledoubleParam(int param, double value) { } |
560 | public void llSetVehicleVectorParam(int param, LSL_Types.Vector3 vec) { } | 560 | public void llSetVehicleVectorParam(int param, LSL_Types.Vector3 vec) { } |
561 | public void llSetVehicleRotationParam(int param, LSL_Types.Quaternion rot) { } | 561 | public void llSetVehicleRotationParam(int param, LSL_Types.Quaternion rot) { } |
562 | public void llSetVehicleFlags(int flags) { } | 562 | public void llSetVehicleFlags(int flags) { } |
563 | public void llRemoveVehicleFlags(int flags) { } | 563 | public void llRemoveVehicleFlags(int flags) { } |
564 | public void llSitTarget(LSL_Types.Vector3 offset, LSL_Types.Quaternion rot) { } | 564 | public void llSitTarget(LSL_Types.Vector3 offset, LSL_Types.Quaternion rot) { } |
565 | public string llAvatarOnSitTarget() { return ""; } | 565 | public string llAvatarOnSitTarget() { return ""; } |
566 | public void llAddToLandPassList(string avatar, double hours) { } | 566 | public void llAddToLandPassList(string avatar, double hours) { } |
567 | 567 | ||
568 | public void llSetTouchText(string text) | 568 | public void llSetTouchText(string text) |
569 | { | 569 | { |
570 | m_host.TouchName = text; | 570 | m_host.TouchName = text; |
571 | } | 571 | } |
572 | 572 | ||
573 | public void llSetSitText(string text) | 573 | public void llSetSitText(string text) |
574 | { | 574 | { |
575 | m_host.SitName = text; | 575 | m_host.SitName = text; |
576 | } | 576 | } |
577 | 577 | ||
578 | public void llSetCameraEyeOffset(LSL_Types.Vector3 offset) { } | 578 | public void llSetCameraEyeOffset(LSL_Types.Vector3 offset) { } |
579 | public void llSetCameraAtOffset(LSL_Types.Vector3 offset) { } | 579 | public void llSetCameraAtOffset(LSL_Types.Vector3 offset) { } |
580 | public void llDumpList2String() { } | 580 | public void llDumpList2String() { } |
581 | public void llScriptDanger(LSL_Types.Vector3 pos) { } | 581 | public void llScriptDanger(LSL_Types.Vector3 pos) { } |
582 | public void llDialog(string avatar, string message, List<string> buttons, int chat_channel) { } | 582 | public void llDialog(string avatar, string message, List<string> buttons, int chat_channel) { } |
583 | public void llVolumeDetect(int detect) { } | 583 | public void llVolumeDetect(int detect) { } |
584 | public void llResetOtherScript(string name) { } | 584 | public void llResetOtherScript(string name) { } |
585 | 585 | ||
586 | public int llGetScriptState(string name) | 586 | public int llGetScriptState(string name) |
587 | { | 587 | { |
588 | return 0; | 588 | return 0; |
589 | } | 589 | } |
590 | 590 | ||
591 | public void llRemoteLoadScript() { } | 591 | public void llRemoteLoadScript() { } |
592 | public void llSetRemoteScriptAccessPin(int pin) { } | 592 | public void llSetRemoteScriptAccessPin(int pin) { } |
593 | public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param) { } | 593 | public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param) { } |
594 | public void llOpenRemoteDataChannel() { } | 594 | public void llOpenRemoteDataChannel() { } |
595 | public string llSendRemoteData(string channel, string dest, int idata, string sdata) { return ""; } | 595 | public string llSendRemoteData(string channel, string dest, int idata, string sdata) { return ""; } |
596 | public void llRemoteDataReply(string channel, string message_id, string sdata, int idata) { } | 596 | public void llRemoteDataReply(string channel, string message_id, string sdata, int idata) { } |
597 | public void llCloseRemoteDataChannel(string channel) { } | 597 | public void llCloseRemoteDataChannel(string channel) { } |
598 | 598 | ||
599 | public string llMD5String(string src, int nonce) | 599 | public string llMD5String(string src, int nonce) |
600 | { | 600 | { |
601 | return Util.Md5Hash(src + ":" + nonce.ToString()); | 601 | return Util.Md5Hash(src + ":" + nonce.ToString()); |
602 | } | 602 | } |
603 | 603 | ||
604 | public void llSetPrimitiveParams(List<string> rules) { } | 604 | public void llSetPrimitiveParams(List<string> rules) { } |
605 | public string llStringToBase64(string str) { return ""; } | 605 | public string llStringToBase64(string str) { return ""; } |
606 | public string llBase64ToString(string str) { return ""; } | 606 | public string llBase64ToString(string str) { return ""; } |
607 | public void llXorBase64Strings() { } | 607 | public void llXorBase64Strings() { } |
608 | public void llRemoteDataSetRegion() { } | 608 | public void llRemoteDataSetRegion() { } |
609 | public double llLog10(double val) { return (double)Math.Log10(val); } | 609 | public double llLog10(double val) { return (double)Math.Log10(val); } |
610 | public double llLog(double val) { return (double)Math.Log(val); } | 610 | public double llLog(double val) { return (double)Math.Log(val); } |
611 | public List<string> llGetAnimationList(string id) { return new List<string>(); } | 611 | public List<string> llGetAnimationList(string id) { return new List<string>(); } |
612 | public void llSetParcelMusicURL(string url) { } | 612 | public void llSetParcelMusicURL(string url) { } |
613 | 613 | ||
614 | public LSL_Types.Vector3 llGetRootPosition() | 614 | public LSL_Types.Vector3 llGetRootPosition() |
615 | { | 615 | { |
616 | throw new NotImplementedException("llGetRootPosition"); | 616 | throw new NotImplementedException("llGetRootPosition"); |
617 | //return m_root.AbsolutePosition; | 617 | //return m_root.AbsolutePosition; |
618 | } | 618 | } |
619 | 619 | ||
620 | public LSL_Types.Quaternion llGetRootRotation() | 620 | public LSL_Types.Quaternion llGetRootRotation() |
621 | { | 621 | { |
622 | return new LSL_Types.Quaternion(); | 622 | return new LSL_Types.Quaternion(); |
623 | } | 623 | } |
624 | 624 | ||
625 | public string llGetObjectDesc() | 625 | public string llGetObjectDesc() |
626 | { | 626 | { |
627 | return m_host.Description; | 627 | return m_host.Description; |
628 | } | 628 | } |
629 | 629 | ||
630 | public void llSetObjectDesc(string desc) | 630 | public void llSetObjectDesc(string desc) |
631 | { | 631 | { |
632 | m_host.Description = desc; | 632 | m_host.Description = desc; |
633 | } | 633 | } |
634 | 634 | ||
635 | public string llGetCreator() | 635 | public string llGetCreator() |
636 | { | 636 | { |
637 | return m_host.ObjectCreator.ToStringHyphenated(); | 637 | return m_host.ObjectCreator.ToStringHyphenated(); |
638 | } | 638 | } |
639 | 639 | ||
640 | public string llGetTimestamp() { return ""; } | 640 | public string llGetTimestamp() { return ""; } |
641 | public void llSetLinkAlpha(int linknumber, double alpha, int face) { } | 641 | public void llSetLinkAlpha(int linknumber, double alpha, int face) { } |
642 | public int llGetNumberOfPrims() { return 0; } | 642 | public int llGetNumberOfPrims() { return 0; } |
643 | public string llGetNumberOfNotecardLines(string name) { return ""; } | 643 | public string llGetNumberOfNotecardLines(string name) { return ""; } |
644 | public List<string> llGetBoundingBox(string obj) { return new List<string>(); } | 644 | public List<string> llGetBoundingBox(string obj) { return new List<string>(); } |
645 | public LSL_Types.Vector3 llGetGeometricCenter() { return new LSL_Types.Vector3(); } | 645 | public LSL_Types.Vector3 llGetGeometricCenter() { return new LSL_Types.Vector3(); } |
646 | public void llGetPrimitiveParams() { } | 646 | public void llGetPrimitiveParams() { } |
647 | public string llIntegerToBase64(int number) { return ""; } | 647 | public string llIntegerToBase64(int number) { return ""; } |
648 | public int llBase64ToInteger(string str) { return 0; } | 648 | public int llBase64ToInteger(string str) { return 0; } |
649 | 649 | ||
650 | public double llGetGMTclock() | 650 | public double llGetGMTclock() |
651 | { | 651 | { |
652 | return DateTime.UtcNow.TimeOfDay.TotalSeconds; | 652 | return DateTime.UtcNow.TimeOfDay.TotalSeconds; |
653 | } | 653 | } |
654 | 654 | ||
655 | public string llGetSimulatorHostname() | 655 | public string llGetSimulatorHostname() |
656 | { | 656 | { |
657 | return System.Environment.MachineName; | 657 | return System.Environment.MachineName; |
658 | } | 658 | } |
659 | 659 | ||
660 | public void llSetLocalRot(LSL_Types.Quaternion rot) { } | 660 | public void llSetLocalRot(LSL_Types.Quaternion rot) { } |
661 | public List<string> llParseStringKeepNulls(string src, List<string> seperators, List<string> spacers) | 661 | public List<string> llParseStringKeepNulls(string src, List<string> seperators, List<string> spacers) |
662 | { return new List<string>(); } | 662 | { return new List<string>(); } |
663 | public void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity, LSL_Types.Quaternion rot, int param) { } | 663 | public void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity, LSL_Types.Quaternion rot, int param) { } |
664 | 664 | ||
665 | public int llGetObjectPermMask(int mask) { return 0; } | 665 | public int llGetObjectPermMask(int mask) { return 0; } |
666 | 666 | ||
667 | public void llSetObjectPermMask(int mask, int value) { } | 667 | public void llSetObjectPermMask(int mask, int value) { } |
668 | 668 | ||
669 | public void llGetInventoryPermMask(string item, int mask) { } | 669 | public void llGetInventoryPermMask(string item, int mask) { } |
670 | public void llSetInventoryPermMask(string item, int mask, int value) { } | 670 | public void llSetInventoryPermMask(string item, int mask, int value) { } |
671 | public string llGetInventoryCreator(string item) { return ""; } | 671 | public string llGetInventoryCreator(string item) { return ""; } |
672 | public void llOwnerSay(string msg) { } | 672 | public void llOwnerSay(string msg) { } |
673 | public void llRequestSimulatorData(string simulator, int data) { } | 673 | public void llRequestSimulatorData(string simulator, int data) { } |
674 | public void llForceMouselook(int mouselook) { } | 674 | public void llForceMouselook(int mouselook) { } |
675 | public double llGetObjectMass(string id) { return 0; } | 675 | public double llGetObjectMass(string id) { return 0; } |
676 | public void llListReplaceList() { } | 676 | public void llListReplaceList() { } |
677 | 677 | ||
678 | public void llLoadURL(string avatar_id, string message, string url) | 678 | public void llLoadURL(string avatar_id, string message, string url) |
679 | { | 679 | { |
680 | LLUUID avatarId = new LLUUID(avatar_id); | 680 | LLUUID avatarId = new LLUUID(avatar_id); |
681 | m_ScriptEngine.World.SendUrlToUser(avatarId, m_host.Name, m_host.UUID, m_host.ObjectOwner, false, message, url); | 681 | m_ScriptEngine.World.SendUrlToUser(avatarId, m_host.Name, m_host.UUID, m_host.ObjectOwner, false, message, url); |
682 | } | 682 | } |
683 | 683 | ||
684 | public void llParcelMediaCommandList(List<string> commandList) { } | 684 | public void llParcelMediaCommandList(List<string> commandList) { } |
685 | public void llParcelMediaQuery() { } | 685 | public void llParcelMediaQuery() { } |
686 | 686 | ||
687 | public int llModPow(int a, int b, int c) | 687 | public int llModPow(int a, int b, int c) |
688 | { | 688 | { |
689 | Int64 tmp = 0; | 689 | Int64 tmp = 0; |
690 | Int64 val = Math.DivRem(Convert.ToInt64(Math.Pow(a, b)), c, out tmp); | 690 | Int64 val = Math.DivRem(Convert.ToInt64(Math.Pow(a, b)), c, out tmp); |
691 | return Convert.ToInt32(tmp); | 691 | return Convert.ToInt32(tmp); |
692 | } | 692 | } |
693 | 693 | ||
694 | public int llGetInventoryType(string name) { return 0; } | 694 | public int llGetInventoryType(string name) { return 0; } |
695 | 695 | ||
696 | public void llSetPayPrice(int price, List<string> quick_pay_buttons) { } | 696 | public void llSetPayPrice(int price, List<string> quick_pay_buttons) { } |
697 | public LSL_Types.Vector3 llGetCameraPos() { return new LSL_Types.Vector3(); } | 697 | public LSL_Types.Vector3 llGetCameraPos() { return new LSL_Types.Vector3(); } |
698 | public LSL_Types.Quaternion llGetCameraRot() { return new LSL_Types.Quaternion(); } | 698 | public LSL_Types.Quaternion llGetCameraRot() { return new LSL_Types.Quaternion(); } |
699 | public void llSetPrimURL() { } | 699 | public void llSetPrimURL() { } |
700 | public void llRefreshPrimURL() { } | 700 | public void llRefreshPrimURL() { } |
701 | 701 | ||
702 | public string llEscapeURL(string url) | 702 | public string llEscapeURL(string url) |
703 | { | 703 | { |
704 | try | 704 | try |
705 | { | 705 | { |
706 | return Uri.EscapeUriString(url); | 706 | return Uri.EscapeUriString(url); |
707 | } | 707 | } |
708 | catch (Exception ex) | 708 | catch (Exception ex) |
709 | { | 709 | { |
710 | return "llEscapeURL: " + ex.ToString(); | 710 | return "llEscapeURL: " + ex.ToString(); |
711 | } | 711 | } |
712 | } | 712 | } |
713 | 713 | ||
714 | public string llUnescapeURL(string url) | 714 | public string llUnescapeURL(string url) |
715 | { | 715 | { |
716 | try | 716 | try |
717 | { | 717 | { |
718 | return Uri.UnescapeDataString(url); | 718 | return Uri.UnescapeDataString(url); |
719 | } | 719 | } |
720 | catch (Exception ex) | 720 | catch (Exception ex) |
721 | { | 721 | { |
722 | return "llUnescapeURL: " + ex.ToString(); | 722 | return "llUnescapeURL: " + ex.ToString(); |
723 | } | 723 | } |
724 | } | 724 | } |
725 | public void llMapDestination(string simname, LSL_Types.Vector3 pos, LSL_Types.Vector3 look_at) { } | 725 | public void llMapDestination(string simname, LSL_Types.Vector3 pos, LSL_Types.Vector3 look_at) { } |
726 | public void llAddToLandBanList(string avatar, double hours) { } | 726 | public void llAddToLandBanList(string avatar, double hours) { } |
727 | public void llRemoveFromLandPassList(string avatar) { } | 727 | public void llRemoveFromLandPassList(string avatar) { } |
728 | public void llRemoveFromLandBanList(string avatar) { } | 728 | public void llRemoveFromLandBanList(string avatar) { } |
729 | public void llSetCameraParams(List<string> rules) { } | 729 | public void llSetCameraParams(List<string> rules) { } |
730 | public void llClearCameraParams() { } | 730 | public void llClearCameraParams() { } |
731 | public double llListStatistics(int operation, List<string> src) { return 0; } | 731 | public double llListStatistics(int operation, List<string> src) { return 0; } |
732 | 732 | ||
733 | public int llGetUnixTime() | 733 | public int llGetUnixTime() |
734 | { | 734 | { |
735 | return Util.UnixTimeSinceEpoch(); | 735 | return Util.UnixTimeSinceEpoch(); |
736 | } | 736 | } |
737 | 737 | ||
738 | public int llGetParcelFlags(LSL_Types.Vector3 pos) { return 0; } | 738 | public int llGetParcelFlags(LSL_Types.Vector3 pos) { return 0; } |
739 | public int llGetRegionFlags() { return 0; } | 739 | public int llGetRegionFlags() { return 0; } |
740 | public string llXorBase64StringsCorrect(string str1, string str2) { return ""; } | 740 | public string llXorBase64StringsCorrect(string str1, string str2) { return ""; } |
741 | public void llHTTPRequest() { } | 741 | public void llHTTPRequest() { } |
742 | public void llResetLandBanList() { } | 742 | public void llResetLandBanList() { } |
743 | public void llResetLandPassList() { } | 743 | public void llResetLandPassList() { } |
744 | public int llGetParcelPrimCount(LSL_Types.Vector3 pos, int category, int sim_wide) { return 0; } | 744 | public int llGetParcelPrimCount(LSL_Types.Vector3 pos, int category, int sim_wide) { return 0; } |
745 | public List<string> llGetParcelPrimOwners(LSL_Types.Vector3 pos) { return new List<string>(); } | 745 | public List<string> llGetParcelPrimOwners(LSL_Types.Vector3 pos) { return new List<string>(); } |
746 | public int llGetObjectPrimCount(string object_id) { return 0; } | 746 | public int llGetObjectPrimCount(string object_id) { return 0; } |
747 | public int llGetParcelMaxPrims(LSL_Types.Vector3 pos, int sim_wide) { return 0; } | 747 | public int llGetParcelMaxPrims(LSL_Types.Vector3 pos, int sim_wide) { return 0; } |
748 | public List<string> llGetParcelDetails(LSL_Types.Vector3 pos, List<string> param) { return new List<string>(); } | 748 | public List<string> llGetParcelDetails(LSL_Types.Vector3 pos, List<string> param) { return new List<string>(); } |
749 | 749 | ||
750 | // | 750 | // |
751 | // OpenSim functions | 751 | // OpenSim functions |
752 | // | 752 | // |
753 | public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer) | 753 | public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer) |
754 | { | 754 | { |
755 | if (dynamicID == "") | 755 | if (dynamicID == "") |
756 | { | 756 | { |
757 | IDynamicTextureManager textureManager = this.World.RequestModuleInterface<IDynamicTextureManager>(); | 757 | IDynamicTextureManager textureManager = this.World.RequestModuleInterface<IDynamicTextureManager>(); |
758 | LLUUID createdTexture = textureManager.AddDynamicTextureURL(World.RegionInfo.SimUUID, this.m_host.UUID, contentType, url, extraParams, timer); | 758 | LLUUID createdTexture = textureManager.AddDynamicTextureURL(World.RegionInfo.SimUUID, this.m_host.UUID, contentType, url, extraParams, timer); |
759 | return createdTexture.ToStringHyphenated(); | 759 | return createdTexture.ToStringHyphenated(); |
760 | } | 760 | } |
761 | else | 761 | else |
762 | { | 762 | { |
763 | //TODO update existing dynamic textures | 763 | //TODO update existing dynamic textures |
764 | } | 764 | } |
765 | 765 | ||
766 | return LLUUID.Zero.ToStringHyphenated(); | 766 | return LLUUID.Zero.ToStringHyphenated(); |
767 | } | 767 | } |
768 | 768 | ||
769 | } | 769 | } |
770 | } | 770 | } |