aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs784
1 files changed, 784 insertions, 0 deletions
diff --git a/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs b/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs
new file mode 100644
index 0000000..a3011f5
--- /dev/null
+++ b/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs
@@ -0,0 +1,784 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler;
5using OpenSim.Region.ScriptEngine.Common;
6using System.Threading;
7using System.Reflection;
8using System.Runtime.Remoting.Lifetime;
9using integer = System.Int32;
10using key = System.String;
11using vector = OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3;
12using rotation = OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion;
13
14namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSL
15{
16 //[Serializable]
17 public class LSL_BaseClass : MarshalByRefObject, LSL_BuiltIn_Commands_Interface, IScript
18 {
19
20 // Object never expires
21 public override Object InitializeLifetimeService()
22 {
23 //Console.WriteLine("LSL_BaseClass: InitializeLifetimeService()");
24 // return null;
25 ILease lease = (ILease)base.InitializeLifetimeService();
26
27 if (lease.CurrentState == LeaseState.Initial)
28 {
29 lease.InitialLeaseTime = TimeSpan.Zero; // TimeSpan.FromMinutes(1);
30 //lease.SponsorshipTimeout = TimeSpan.FromMinutes(2);
31 //lease.RenewOnCallTime = TimeSpan.FromSeconds(2);
32 }
33 return lease;
34 }
35
36
37 private Executor m_Exec;
38 public Executor Exec
39 {
40 get
41 {
42 if (m_Exec == null)
43 m_Exec = new Executor(this);
44 return m_Exec;
45 }
46 }
47
48 public LSL_BuiltIn_Commands_Interface m_LSL_Functions;
49 public string SourceCode = "";
50
51 public LSL_BaseClass()
52 {
53 }
54 public string State()
55 {
56 return m_LSL_Functions.State();
57 }
58
59
60 public void Start(LSL_BuiltIn_Commands_Interface LSL_Functions)
61 {
62 m_LSL_Functions = LSL_Functions;
63
64 //MainLog.Instance.Notice("ScriptEngine", "LSL_BaseClass.Start() called.");
65
66 // Get this AppDomain's settings and display some of them.
67 AppDomainSetup ads = AppDomain.CurrentDomain.SetupInformation;
68 Console.WriteLine("AppName={0}, AppBase={1}, ConfigFile={2}",
69 ads.ApplicationName,
70 ads.ApplicationBase,
71 ads.ConfigurationFile
72 );
73
74 // Display the name of the calling AppDomain and the name
75 // of the second domain.
76 // NOTE: The application's thread has transitioned between
77 // AppDomains.
78 Console.WriteLine("Calling to '{0}'.",
79 Thread.GetDomain().FriendlyName
80 );
81
82 return;
83 }
84
85
86
87 //
88 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
89 //
90 // They are only forwarders to LSL_BuiltIn_Commands.cs
91 //
92 public double llSin(double f) { return m_LSL_Functions.llSin(f); }
93 public double llCos(double f) { return m_LSL_Functions.llCos(f); }
94 public double llTan(double f) { return m_LSL_Functions.llTan(f); }
95 public double llAtan2(double x, double y) { return m_LSL_Functions.llAtan2(x, y); }
96 public double llSqrt(double f) { return m_LSL_Functions.llSqrt(f); }
97 public double llPow(double fbase, double fexponent) { return m_LSL_Functions.llPow(fbase, fexponent); }
98 public int llAbs(int i) { return m_LSL_Functions.llAbs(i); }
99 public double llFabs(double f) { return m_LSL_Functions.llFabs(f); }
100 public double llFrand(double mag) { return m_LSL_Functions.llFrand(mag); }
101 public int llFloor(double f) { return m_LSL_Functions.llFloor(f); }
102 public int llCeil(double f) { return m_LSL_Functions.llCeil(f); }
103 public int llRound(double f) { return m_LSL_Functions.llRound(f); }
104 public double llVecMag(LSL_Types.Vector3 v) { return m_LSL_Functions.llVecMag(v); }
105 public LSL_Types.Vector3 llVecNorm(LSL_Types.Vector3 v) { return m_LSL_Functions.llVecNorm(v); }
106 public double llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b) { return m_LSL_Functions.llVecDist(a, b); }
107 public LSL_Types.Vector3 llRot2Euler(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Euler(r); }
108 public LSL_Types.Quaternion llEuler2Rot(LSL_Types.Vector3 v) { return m_LSL_Functions.llEuler2Rot(v); }
109 public LSL_Types.Quaternion llAxes2Rot(LSL_Types.Vector3 fwd, LSL_Types.Vector3 left, LSL_Types.Vector3 up) { return m_LSL_Functions.llAxes2Rot(fwd, left, up); }
110 public LSL_Types.Vector3 llRot2Fwd(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Fwd(r); }
111 public LSL_Types.Vector3 llRot2Left(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Left(r); }
112 public LSL_Types.Vector3 llRot2Up(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Up(r); }
113 public LSL_Types.Quaternion llRotBetween(LSL_Types.Vector3 start, LSL_Types.Vector3 end) { return m_LSL_Functions.llRotBetween(start, end); }
114 public void llWhisper(int channelID, string text) { m_LSL_Functions.llWhisper(channelID, text); }
115 public void llSay(int channelID, string text) { m_LSL_Functions.llSay(channelID, text); }
116 //
117 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
118 //
119 public void llShout(int channelID, string text) { m_LSL_Functions.llShout(channelID, text); }
120 public int llListen(int channelID, string name, string ID, string msg) { return m_LSL_Functions.llListen(channelID, name, ID, msg); }
121 public void llListenControl(int number, int active) { m_LSL_Functions.llListenControl(number, active); }
122 public void llListenRemove(int number) { m_LSL_Functions.llListenRemove(number); }
123 public void llSensor(string name, string id, int type, double range, double arc) { m_LSL_Functions.llSensor(name, id, type, range, arc); }
124 public void llSensorRepeat(string name, string id, int type, double range, double arc, double rate) { m_LSL_Functions.llSensorRepeat(name, id, type, range, arc, rate); }
125 public void llSensorRemove() { m_LSL_Functions.llSensorRemove(); }
126 public string llDetectedName(int number) { return m_LSL_Functions.llDetectedName(number); }
127 public string llDetectedKey(int number) { return m_LSL_Functions.llDetectedKey(number); }
128 public string llDetectedOwner(int number) { return m_LSL_Functions.llDetectedOwner(number); }
129 public int llDetectedType(int number) { return m_LSL_Functions.llDetectedType(number); }
130 public LSL_Types.Vector3 llDetectedPos(int number) { return m_LSL_Functions.llDetectedPos(number); }
131 public LSL_Types.Vector3 llDetectedVel(int number) { return m_LSL_Functions.llDetectedVel(number); }
132 public LSL_Types.Vector3 llDetectedGrab(int number) { return m_LSL_Functions.llDetectedGrab(number); }
133 public LSL_Types.Quaternion llDetectedRot(int number) { return m_LSL_Functions.llDetectedRot(number); }
134 public int llDetectedGroup(int number) { return m_LSL_Functions.llDetectedGroup(number); }
135 public int llDetectedLinkNumber(int number) { return m_LSL_Functions.llDetectedLinkNumber(number); }
136 //
137 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
138 //
139 public void llDie() { m_LSL_Functions.llDie(); }
140 public double llGround(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGround(offset); }
141 public double llCloud(LSL_Types.Vector3 offset) { return m_LSL_Functions.llCloud(offset); }
142 public LSL_Types.Vector3 llWind(LSL_Types.Vector3 offset) { return m_LSL_Functions.llWind(offset); }
143 public void llSetStatus(int status, int value) { m_LSL_Functions.llSetStatus(status, value); }
144 public int llGetStatus(int status) { return m_LSL_Functions.llGetStatus(status); }
145 public void llSetScale(LSL_Types.Vector3 scale) { m_LSL_Functions.llSetScale(scale); }
146 public LSL_Types.Vector3 llGetScale() { return m_LSL_Functions.llGetScale(); }
147 public void llSetColor(LSL_Types.Vector3 color, int face) { m_LSL_Functions.llSetColor(color, face); }
148 public double llGetAlpha(int face) { return m_LSL_Functions.llGetAlpha(face); }
149 public void llSetAlpha(double alpha, int face) { m_LSL_Functions.llSetAlpha(alpha, face); }
150 public LSL_Types.Vector3 llGetColor(int face) { return m_LSL_Functions.llGetColor(face); }
151 public void llSetTexture(string texture, int face) { m_LSL_Functions.llSetTexture(texture, face); }
152 public void llScaleTexture(double u, double v, int face) { m_LSL_Functions.llScaleTexture(u, v, face); }
153 public void llOffsetTexture(double u, double v, int face) { m_LSL_Functions.llOffsetTexture(u, v, face); }
154 public void llRotateTexture(double rotation, int face) { m_LSL_Functions.llRotateTexture(rotation, face); }
155 public string llGetTexture(int face) { return m_LSL_Functions.llGetTexture(face); }
156 //
157 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
158 //
159 public void llSetPos(LSL_Types.Vector3 pos) { m_LSL_Functions.llSetPos(pos); }
160 public LSL_Types.Vector3 llGetPos() { return m_LSL_Functions.llGetPos(); }
161 public LSL_Types.Vector3 llGetLocalPos() { return m_LSL_Functions.llGetLocalPos(); }
162 public void llSetRot(LSL_Types.Quaternion rot) { m_LSL_Functions.llSetRot(rot); }
163 public LSL_Types.Quaternion llGetRot() { return m_LSL_Functions.llGetRot(); }
164 public LSL_Types.Quaternion llGetLocalRot() { return m_LSL_Functions.llGetLocalRot(); }
165 public void llSetForce(LSL_Types.Vector3 force, int local) { m_LSL_Functions.llSetForce(force, local); }
166 public LSL_Types.Vector3 llGetForce() { return m_LSL_Functions.llGetForce(); }
167 public int llTarget(LSL_Types.Vector3 position, double range) { return m_LSL_Functions.llTarget(position, range); }
168 public void llTargetRemove(int number) { m_LSL_Functions.llTargetRemove(number); }
169 public int llRotTarget(LSL_Types.Quaternion rot, double error) { return m_LSL_Functions.llRotTarget(rot, error); }
170 public void llRotTargetRemove(int number) { m_LSL_Functions.llRotTargetRemove(number); }
171 public void llMoveToTarget(LSL_Types.Vector3 target, double tau) { m_LSL_Functions.llMoveToTarget(target, tau); }
172 public void llStopMoveToTarget() { m_LSL_Functions.llStopMoveToTarget(); }
173 public void llApplyImpulse(LSL_Types.Vector3 force, int local) { m_LSL_Functions.llApplyImpulse(force, local); }
174 //
175 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
176 //
177 public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) { m_LSL_Functions.llApplyRotationalImpulse(force, local); }
178 public void llSetTorque(LSL_Types.Vector3 torque, int local) { m_LSL_Functions.llSetTorque(torque, local); }
179 public LSL_Types.Vector3 llGetTorque() { return m_LSL_Functions.llGetTorque(); }
180 public void llSetForceAndTorque(LSL_Types.Vector3 force, LSL_Types.Vector3 torque, int local) { m_LSL_Functions.llSetForceAndTorque(force, torque, local); }
181 public LSL_Types.Vector3 llGetVel() { return m_LSL_Functions.llGetVel(); }
182 public LSL_Types.Vector3 llGetAccel() { return m_LSL_Functions.llGetAccel(); }
183 public LSL_Types.Vector3 llGetOmega() { return m_LSL_Functions.llGetOmega(); }
184 public double llGetTimeOfDay() { return m_LSL_Functions.llGetTimeOfDay(); }
185 public double llGetWallclock() { return m_LSL_Functions.llGetWallclock(); }
186 public double llGetTime() { return m_LSL_Functions.llGetTime(); }
187 public void llResetTime() { m_LSL_Functions.llResetTime(); }
188 public double llGetAndResetTime() { return m_LSL_Functions.llGetAndResetTime(); }
189 public void llSound() { m_LSL_Functions.llSound(); }
190 public void llPlaySound(string sound, double volume) { m_LSL_Functions.llPlaySound(sound, volume); }
191 public void llLoopSound(string sound, double volume) { m_LSL_Functions.llLoopSound(sound, volume); }
192 public void llLoopSoundMaster(string sound, double volume) { m_LSL_Functions.llLoopSoundMaster(sound, volume); }
193 public void llLoopSoundSlave(string sound, double volume) { m_LSL_Functions.llLoopSoundSlave(sound, volume); }
194 public void llPlaySoundSlave(string sound, double volume) { m_LSL_Functions.llPlaySoundSlave(sound, volume); }
195 //
196 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
197 //
198 public void llTriggerSound(string sound, double volume) { m_LSL_Functions.llTriggerSound(sound, volume); }
199 public void llStopSound() { m_LSL_Functions.llStopSound(); }
200 public void llPreloadSound(string sound) { m_LSL_Functions.llPreloadSound(sound); }
201 public string llGetSubString(string src, int start, int end) { return m_LSL_Functions.llGetSubString(src, start, end); }
202 public string llDeleteSubString(string src, int start, int end) { return m_LSL_Functions.llDeleteSubString(src, start, end); }
203 public string llInsertString(string dst, int position, string src) { return m_LSL_Functions.llInsertString(dst, position, src); }
204 public string llToUpper(string source) { return m_LSL_Functions.llToUpper(source); }
205 public string llToLower(string source) { return m_LSL_Functions.llToLower(source); }
206 public int llGiveMoney(string destination, int amount) { return m_LSL_Functions.llGiveMoney(destination, amount); }
207 public void llMakeExplosion() { m_LSL_Functions.llMakeExplosion(); }
208 public void llMakeFountain() { m_LSL_Functions.llMakeFountain(); }
209 public void llMakeSmoke() { m_LSL_Functions.llMakeSmoke(); }
210 public void llMakeFire() { m_LSL_Functions.llMakeFire(); }
211 public void llRezObject(string inventory, LSL_Types.Vector3 pos, LSL_Types.Quaternion rot, int param) { m_LSL_Functions.llRezObject(inventory, pos, rot, param); }
212 public void llLookAt(LSL_Types.Vector3 target, double strength, double damping) { m_LSL_Functions.llLookAt(target, strength, damping); }
213 public void llStopLookAt() { m_LSL_Functions.llStopLookAt(); }
214 public void llSetTimerEvent(double sec) { m_LSL_Functions.llSetTimerEvent(sec); }
215 public void llSleep(double sec) { m_LSL_Functions.llSleep(sec); }
216 //
217 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
218 //
219 public double llGetMass() { return m_LSL_Functions.llGetMass(); }
220 public void llCollisionFilter(string name, string id, int accept) { m_LSL_Functions.llCollisionFilter(name, id, accept); }
221 public void llTakeControls(int controls, int accept, int pass_on) { m_LSL_Functions.llTakeControls(controls, accept, pass_on); }
222 public void llReleaseControls() { m_LSL_Functions.llReleaseControls(); }
223 public void llAttachToAvatar(int attachment) { m_LSL_Functions.llAttachToAvatar(attachment); }
224 public void llDetachFromAvatar() { m_LSL_Functions.llDetachFromAvatar(); }
225 public void llTakeCamera() { m_LSL_Functions.llTakeCamera(); }
226 public void llReleaseCamera() { m_LSL_Functions.llReleaseCamera(); }
227 public string llGetOwner() { return m_LSL_Functions.llGetOwner(); }
228 public void llInstantMessage(string user, string message) { m_LSL_Functions.llInstantMessage(user, message); }
229 public void llEmail(string address, string subject, string message) { m_LSL_Functions.llEmail(address, subject, message); }
230 public void llGetNextEmail(string address, string subject) { m_LSL_Functions.llGetNextEmail(address, subject); }
231 public string llGetKey() { return m_LSL_Functions.llGetKey(); }
232 public void llSetBuoyancy(double buoyancy) { m_LSL_Functions.llSetBuoyancy(buoyancy); }
233 public void llSetHoverHeight(double height, int water, double tau) { m_LSL_Functions.llSetHoverHeight(height, water, tau); }
234 public void llStopHover() { m_LSL_Functions.llStopHover(); }
235 public void llMinEventDelay(double delay) { m_LSL_Functions.llMinEventDelay(delay); }
236 public void llSoundPreload() { m_LSL_Functions.llSoundPreload(); }
237 public void llRotLookAt(LSL_Types.Quaternion target, double strength, double damping) { m_LSL_Functions.llRotLookAt(target, strength, damping); }
238 //
239 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
240 //
241 public int llStringLength(string str) { return m_LSL_Functions.llStringLength(str); }
242 public void llStartAnimation(string anim) { m_LSL_Functions.llStartAnimation(anim); }
243 public void llStopAnimation(string anim) { m_LSL_Functions.llStopAnimation(anim); }
244 public void llPointAt() { m_LSL_Functions.llPointAt(); }
245 public void llStopPointAt() { m_LSL_Functions.llStopPointAt(); }
246 public void llTargetOmega(LSL_Types.Vector3 axis, double spinrate, double gain) { m_LSL_Functions.llTargetOmega(axis, spinrate, gain); }
247 public int llGetStartParameter() { return m_LSL_Functions.llGetStartParameter(); }
248 public void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos) { m_LSL_Functions.llGodLikeRezObject(inventory, pos); }
249 public void llRequestPermissions(string agent, int perm) { m_LSL_Functions.llRequestPermissions(agent, perm); }
250 public string llGetPermissionsKey() { return m_LSL_Functions.llGetPermissionsKey(); }
251 public int llGetPermissions() { return m_LSL_Functions.llGetPermissions(); }
252 public int llGetLinkNumber() { return m_LSL_Functions.llGetLinkNumber(); }
253 public void llSetLinkColor(int linknumber, LSL_Types.Vector3 color, int face) { m_LSL_Functions.llSetLinkColor(linknumber, color, face); }
254 public void llCreateLink(string target, int parent) { m_LSL_Functions.llCreateLink(target, parent); }
255 public void llBreakLink(int linknum) { m_LSL_Functions.llBreakLink(linknum); }
256 public void llBreakAllLinks() { m_LSL_Functions.llBreakAllLinks(); }
257 public string llGetLinkKey(int linknum) { return m_LSL_Functions.llGetLinkKey(linknum); }
258 public void llGetLinkName(int linknum) { m_LSL_Functions.llGetLinkName(linknum); }
259 public int llGetInventoryNumber(int type) { return m_LSL_Functions.llGetInventoryNumber(type); }
260 public string llGetInventoryName(int type, int number) { return m_LSL_Functions.llGetInventoryName(type, number); }
261 //
262 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
263 //
264 public void llSetScriptState(string name, int run) { m_LSL_Functions.llSetScriptState(name, run); }
265 public double llGetEnergy() { return m_LSL_Functions.llGetEnergy(); }
266 public void llGiveInventory(string destination, string inventory) { m_LSL_Functions.llGiveInventory(destination, inventory); }
267 public void llRemoveInventory(string item) { m_LSL_Functions.llRemoveInventory(item); }
268 public void llSetText(string text, LSL_Types.Vector3 color, double alpha) { m_LSL_Functions.llSetText(text, color, alpha); }
269 public double llWater(LSL_Types.Vector3 offset) { return m_LSL_Functions.llWater(offset); }
270 public void llPassTouches(int pass) { m_LSL_Functions.llPassTouches(pass); }
271 public string llRequestAgentData(string id, int data) { return m_LSL_Functions.llRequestAgentData(id, data); }
272 public string llRequestInventoryData(string name) { return m_LSL_Functions.llRequestInventoryData(name); }
273 public void llSetDamage(double damage) { m_LSL_Functions.llSetDamage(damage); }
274 public void llTeleportAgentHome(string agent) { m_LSL_Functions.llTeleportAgentHome(agent); }
275 public void llModifyLand(int action, int brush) { m_LSL_Functions.llModifyLand(action, brush); }
276 public void llCollisionSound(string impact_sound, double impact_volume) { m_LSL_Functions.llCollisionSound(impact_sound, impact_volume); }
277 public void llCollisionSprite(string impact_sprite) { m_LSL_Functions.llCollisionSprite(impact_sprite); }
278 public string llGetAnimation(string id) { return m_LSL_Functions.llGetAnimation(id); }
279 public void llResetScript() { m_LSL_Functions.llResetScript(); }
280 public void llMessageLinked(int linknum, int num, string str, string id) { m_LSL_Functions.llMessageLinked(linknum, num, str, id); }
281 public void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local) { m_LSL_Functions.llPushObject(target, impulse, ang_impulse, local); }
282 public void llPassCollisions(int pass) { m_LSL_Functions.llPassCollisions(pass); }
283 public string llGetScriptName() { return m_LSL_Functions.llGetScriptName(); }
284 public int llGetNumberOfSides() { return m_LSL_Functions.llGetNumberOfSides(); }
285 //
286 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
287 //
288 public LSL_Types.Quaternion llAxisAngle2Rot(LSL_Types.Vector3 axis, double angle) { return m_LSL_Functions.llAxisAngle2Rot(axis, angle); }
289 public LSL_Types.Vector3 llRot2Axis(LSL_Types.Quaternion rot) { return m_LSL_Functions.llRot2Axis(rot); }
290 public void llRot2Angle() { m_LSL_Functions.llRot2Angle(); }
291 public double llAcos(double val) { return m_LSL_Functions.llAcos(val); }
292 public double llAsin(double val) { return m_LSL_Functions.llAsin(val); }
293 public double llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b) { return m_LSL_Functions.llAngleBetween(a, b); }
294 public string llGetInventoryKey(string name) { return m_LSL_Functions.llGetInventoryKey(name); }
295 public void llAllowInventoryDrop(int add) { m_LSL_Functions.llAllowInventoryDrop(add); }
296 public LSL_Types.Vector3 llGetSunDirection() { return m_LSL_Functions.llGetSunDirection(); }
297 public LSL_Types.Vector3 llGetTextureOffset(int face) { return m_LSL_Functions.llGetTextureOffset(face); }
298 public LSL_Types.Vector3 llGetTextureScale(int side) { return m_LSL_Functions.llGetTextureScale(side); }
299 public double llGetTextureRot(int side) { return m_LSL_Functions.llGetTextureRot(side); }
300 public int llSubStringIndex(string source, string pattern) { return m_LSL_Functions.llSubStringIndex(source, pattern); }
301 public string llGetOwnerKey(string id) { return m_LSL_Functions.llGetOwnerKey(id); }
302 public LSL_Types.Vector3 llGetCenterOfMass() { return m_LSL_Functions.llGetCenterOfMass(); }
303 public List<string> llListSort(List<string> src, int stride, int ascending) { return m_LSL_Functions.llListSort(src, stride, ascending); }
304 public int llGetListLength(List<string> src) { return m_LSL_Functions.llGetListLength(src); }
305 //
306 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
307 //
308 public int llList2Integer(List<string> src, int index) { return m_LSL_Functions.llList2Integer(src, index); }
309 public double llList2double(List<string> src, int index) { return m_LSL_Functions.llList2double(src, index); }
310 public string llList2String(List<string> src, int index) { return m_LSL_Functions.llList2String(src, index); }
311 public string llList2Key(List<string> src, int index) { return m_LSL_Functions.llList2Key(src, index); }
312 public LSL_Types.Vector3 llList2Vector(List<string> src, int index) { return m_LSL_Functions.llList2Vector(src, index); }
313 public LSL_Types.Quaternion llList2Rot(List<string> src, int index) { return m_LSL_Functions.llList2Rot(src, index); }
314 public List<string> llList2List(List<string> src, int start, int end) { return m_LSL_Functions.llList2List(src, start, end); }
315 public List<string> llDeleteSubList(List<string> src, int start, int end) { return m_LSL_Functions.llDeleteSubList(src, start, end); }
316 public int llGetListEntryType(List<string> src, int index) { return m_LSL_Functions.llGetListEntryType(src, index); }
317 public string llList2CSV(List<string> src) { return m_LSL_Functions.llList2CSV(src); }
318 public List<string> llCSV2List(string src) { return m_LSL_Functions.llCSV2List(src); }
319 public List<string> llListRandomize(List<string> src, int stride) { return m_LSL_Functions.llListRandomize(src, stride); }
320 public List<string> llList2ListStrided(List<string> src, int start, int end, int stride) { return m_LSL_Functions.llList2ListStrided(src, start, end, stride); }
321 public LSL_Types.Vector3 llGetRegionCorner() { return m_LSL_Functions.llGetRegionCorner(); }
322 public List<string> llListInsertList(List<string> dest, List<string> src, int start) { return m_LSL_Functions.llListInsertList(dest, src, start); }
323 public int llListFindList(List<string> src, List<string> test) { return m_LSL_Functions.llListFindList(src, test); }
324 public string llGetObjectName() { return m_LSL_Functions.llGetObjectName(); }
325 public void llSetObjectName(string name) { m_LSL_Functions.llSetObjectName(name); }
326 public string llGetDate() { return m_LSL_Functions.llGetDate(); }
327 public int llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir) { return m_LSL_Functions.llEdgeOfWorld(pos, dir); }
328 public int llGetAgentInfo(string id) { return m_LSL_Functions.llGetAgentInfo(id); }
329 //
330 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
331 //
332 public void llAdjustSoundVolume(double volume) { m_LSL_Functions.llAdjustSoundVolume(volume); }
333 public void llSetSoundQueueing(int queue) { m_LSL_Functions.llSetSoundQueueing(queue); }
334 public void llSetSoundRadius(double radius) { m_LSL_Functions.llSetSoundRadius(radius); }
335 public string llKey2Name(string id) { return m_LSL_Functions.llKey2Name(id); }
336 public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) { m_LSL_Functions.llSetTextureAnim(mode, face, sizex, sizey, start, length, rate); }
337 public void llTriggerSoundLimited(string sound, double volume, LSL_Types.Vector3 top_north_east, LSL_Types.Vector3 bottom_south_west) { m_LSL_Functions.llTriggerSoundLimited(sound, volume, top_north_east, bottom_south_west); }
338 public void llEjectFromLand(string pest) { m_LSL_Functions.llEjectFromLand(pest); }
339 public void llParseString2List() { m_LSL_Functions.llParseString2List(); }
340 public int llOverMyLand(string id) { return m_LSL_Functions.llOverMyLand(id); }
341 public string llGetLandOwnerAt(LSL_Types.Vector3 pos) { return m_LSL_Functions.llGetLandOwnerAt(pos); }
342 public string llGetNotecardLine(string name, int line) { return m_LSL_Functions.llGetNotecardLine(name, line); }
343 public LSL_Types.Vector3 llGetAgentSize(string id) { return m_LSL_Functions.llGetAgentSize(id); }
344 public int llSameGroup(string agent) { return m_LSL_Functions.llSameGroup(agent); }
345 public void llUnSit(string id) { m_LSL_Functions.llUnSit(id); }
346 public LSL_Types.Vector3 llGroundSlope(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGroundSlope(offset); }
347 public LSL_Types.Vector3 llGroundNormal(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGroundNormal(offset); }
348 public LSL_Types.Vector3 llGroundContour(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGroundContour(offset); }
349 public int llGetAttached() { return m_LSL_Functions.llGetAttached(); }
350 public int llGetFreeMemory() { return m_LSL_Functions.llGetFreeMemory(); }
351 public string llGetRegionName() { return m_LSL_Functions.llGetRegionName(); }
352 public double llGetRegionTimeDilation() { return m_LSL_Functions.llGetRegionTimeDilation(); }
353 public double llGetRegionFPS() { return m_LSL_Functions.llGetRegionFPS(); }
354 //
355 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
356 //
357 public void llParticleSystem(List<Object> rules) { m_LSL_Functions.llParticleSystem(rules); }
358 public void llGroundRepel(double height, int water, double tau) { m_LSL_Functions.llGroundRepel(height, water, tau); }
359 public void llGiveInventoryList() { m_LSL_Functions.llGiveInventoryList(); }
360 public void llSetVehicleType(int type) { m_LSL_Functions.llSetVehicleType(type); }
361 public void llSetVehicledoubleParam(int param, double value) { m_LSL_Functions.llSetVehicledoubleParam(param, value); }
362 public void llSetVehicleVectorParam(int param, LSL_Types.Vector3 vec) { m_LSL_Functions.llSetVehicleVectorParam(param, vec); }
363 public void llSetVehicleRotationParam(int param, LSL_Types.Quaternion rot) { m_LSL_Functions.llSetVehicleRotationParam(param, rot); }
364 public void llSetVehicleFlags(int flags) { m_LSL_Functions.llSetVehicleFlags(flags); }
365 public void llRemoveVehicleFlags(int flags) { m_LSL_Functions.llRemoveVehicleFlags(flags); }
366 public void llSitTarget(LSL_Types.Vector3 offset, LSL_Types.Quaternion rot) { m_LSL_Functions.llSitTarget(offset, rot); }
367 public string llAvatarOnSitTarget() { return m_LSL_Functions.llAvatarOnSitTarget(); }
368 public void llAddToLandPassList(string avatar, double hours) { m_LSL_Functions.llAddToLandPassList(avatar, hours); }
369 public void llSetTouchText(string text) { m_LSL_Functions.llSetTouchText(text); }
370 public void llSetSitText(string text) { m_LSL_Functions.llSetSitText(text); }
371 public void llSetCameraEyeOffset(LSL_Types.Vector3 offset) { m_LSL_Functions.llSetCameraEyeOffset(offset); }
372 public void llSetCameraAtOffset(LSL_Types.Vector3 offset) { m_LSL_Functions.llSetCameraAtOffset(offset); }
373 public void llDumpList2String() { m_LSL_Functions.llDumpList2String(); }
374 public void llScriptDanger(LSL_Types.Vector3 pos) { m_LSL_Functions.llScriptDanger(pos); }
375 public void llDialog(string avatar, string message, List<string> buttons, int chat_channel) { m_LSL_Functions.llDialog(avatar, message, buttons, chat_channel); }
376 public void llVolumeDetect(int detect) { m_LSL_Functions.llVolumeDetect(detect); }
377 public void llResetOtherScript(string name) { m_LSL_Functions.llResetOtherScript(name); }
378 public int llGetScriptState(string name) { return m_LSL_Functions.llGetScriptState(name); }
379 public void llRemoteLoadScript() { m_LSL_Functions.llRemoteLoadScript(); }
380 public void llSetRemoteScriptAccessPin(int pin) { m_LSL_Functions.llSetRemoteScriptAccessPin(pin); }
381 public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param) { m_LSL_Functions.llRemoteLoadScriptPin(target, name, pin, running, start_param); }
382 //
383 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
384 //
385 public void llOpenRemoteDataChannel() { m_LSL_Functions.llOpenRemoteDataChannel(); }
386 public string llSendRemoteData(string channel, string dest, int idata, string sdata) { return m_LSL_Functions.llSendRemoteData(channel, dest, idata, sdata); }
387 public void llRemoteDataReply(string channel, string message_id, string sdata, int idata) { m_LSL_Functions.llRemoteDataReply(channel, message_id, sdata, idata); }
388 public void llCloseRemoteDataChannel(string channel) { m_LSL_Functions.llCloseRemoteDataChannel(channel); }
389 public string llMD5String(string src, int nonce) { return m_LSL_Functions.llMD5String(src, nonce); }
390 public void llSetPrimitiveParams(List<string> rules) { m_LSL_Functions.llSetPrimitiveParams(rules); }
391 public string llStringToBase64(string str) { return m_LSL_Functions.llStringToBase64(str); }
392 public string llBase64ToString(string str) { return m_LSL_Functions.llBase64ToString(str); }
393 public void llXorBase64Strings() { m_LSL_Functions.llXorBase64Strings(); }
394 public void llRemoteDataSetRegion() { m_LSL_Functions.llRemoteDataSetRegion(); }
395 public double llLog10(double val) { return m_LSL_Functions.llLog10(val); }
396 public double llLog(double val) { return m_LSL_Functions.llLog(val); }
397 public List<string> llGetAnimationList(string id) { return m_LSL_Functions.llGetAnimationList(id); }
398 public void llSetParcelMusicURL(string url) { m_LSL_Functions.llSetParcelMusicURL(url); }
399 public LSL_Types.Vector3 llGetRootPosition() { return m_LSL_Functions.llGetRootPosition(); }
400 public LSL_Types.Quaternion llGetRootRotation() { return m_LSL_Functions.llGetRootRotation(); }
401 public string llGetObjectDesc() { return m_LSL_Functions.llGetObjectDesc(); }
402 public void llSetObjectDesc(string desc) { m_LSL_Functions.llSetObjectDesc(desc); }
403 public string llGetCreator() { return m_LSL_Functions.llGetCreator(); }
404 public string llGetTimestamp() { return m_LSL_Functions.llGetTimestamp(); }
405 public void llSetLinkAlpha(int linknumber, double alpha, int face) { m_LSL_Functions.llSetLinkAlpha(linknumber, alpha, face); }
406 public int llGetNumberOfPrims() { return m_LSL_Functions.llGetNumberOfPrims(); }
407 public string llGetNumberOfNotecardLines(string name) { return m_LSL_Functions.llGetNumberOfNotecardLines(name); }
408 public List<string> llGetBoundingBox(string obj) { return m_LSL_Functions.llGetBoundingBox(obj); }
409 public LSL_Types.Vector3 llGetGeometricCenter() { return m_LSL_Functions.llGetGeometricCenter(); }
410 public void llGetPrimitiveParams() { m_LSL_Functions.llGetPrimitiveParams(); }
411 //
412 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
413 //
414 public string llIntegerToBase64(int number) { return m_LSL_Functions.llIntegerToBase64(number); }
415 public int llBase64ToInteger(string str) { return m_LSL_Functions.llBase64ToInteger(str); }
416 public double llGetGMTclock() { return m_LSL_Functions.llGetGMTclock(); }
417 public string llGetSimulatorHostname() { return m_LSL_Functions.llGetSimulatorHostname(); }
418 public void llSetLocalRot(LSL_Types.Quaternion rot) { m_LSL_Functions.llSetLocalRot(rot); }
419 public List<string> llParseStringKeepNulls(string src, List<string> seperators, List<string> spacers) { return m_LSL_Functions.llParseStringKeepNulls(src, seperators, spacers); }
420 public void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity, LSL_Types.Quaternion rot, int param) { m_LSL_Functions.llRezAtRoot(inventory, position, velocity, rot, param); }
421 public int llGetObjectPermMask(int mask) { return m_LSL_Functions.llGetObjectPermMask(mask); }
422 public void llSetObjectPermMask(int mask, int value) { m_LSL_Functions.llSetObjectPermMask(mask, value); }
423 public void llGetInventoryPermMask(string item, int mask) { m_LSL_Functions.llGetInventoryPermMask(item, mask); }
424 public void llSetInventoryPermMask(string item, int mask, int value) { m_LSL_Functions.llSetInventoryPermMask(item, mask, value); }
425 public string llGetInventoryCreator(string item) { return m_LSL_Functions.llGetInventoryCreator(item); }
426 public void llOwnerSay(string msg) { m_LSL_Functions.llOwnerSay(msg); }
427 public void llRequestSimulatorData(string simulator, int data) { m_LSL_Functions.llRequestSimulatorData(simulator, data); }
428 public void llForceMouselook(int mouselook) { m_LSL_Functions.llForceMouselook(mouselook); }
429 public double llGetObjectMass(string id) { return m_LSL_Functions.llGetObjectMass(id); }
430 public void llListReplaceList() { m_LSL_Functions.llListReplaceList(); }
431 public void llLoadURL(string avatar_id, string message, string url) { m_LSL_Functions.llLoadURL(avatar_id, message, url); }
432 public void llParcelMediaCommandList(List<string> commandList) { m_LSL_Functions.llParcelMediaCommandList(commandList); }
433 public void llParcelMediaQuery() { m_LSL_Functions.llParcelMediaQuery(); }
434 public int llModPow(int a, int b, int c) { return m_LSL_Functions.llModPow(a, b, c); }
435 //
436 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
437 //
438 public int llGetInventoryType(string name) { return m_LSL_Functions.llGetInventoryType(name); }
439 public void llSetPayPrice(int price, List<string> quick_pay_buttons) { m_LSL_Functions.llSetPayPrice(price, quick_pay_buttons); }
440 public LSL_Types.Vector3 llGetCameraPos() { return m_LSL_Functions.llGetCameraPos(); }
441 public LSL_Types.Quaternion llGetCameraRot() { return m_LSL_Functions.llGetCameraRot(); }
442 public void llSetPrimURL() { m_LSL_Functions.llSetPrimURL(); }
443 public void llRefreshPrimURL() { m_LSL_Functions.llRefreshPrimURL(); }
444 public string llEscapeURL(string url) { return m_LSL_Functions.llEscapeURL(url); }
445 public string llUnescapeURL(string url) { return m_LSL_Functions.llUnescapeURL(url); }
446 public void llMapDestination(string simname, LSL_Types.Vector3 pos, LSL_Types.Vector3 look_at) { m_LSL_Functions.llMapDestination(simname, pos, look_at); }
447 public void llAddToLandBanList(string avatar, double hours) { m_LSL_Functions.llAddToLandBanList(avatar, hours); }
448 public void llRemoveFromLandPassList(string avatar) { m_LSL_Functions.llRemoveFromLandPassList(avatar); }
449 public void llRemoveFromLandBanList(string avatar) { m_LSL_Functions.llRemoveFromLandBanList(avatar); }
450 public void llSetCameraParams(List<string> rules) { m_LSL_Functions.llSetCameraParams(rules); }
451 public void llClearCameraParams() { m_LSL_Functions.llClearCameraParams(); }
452 public double llListStatistics(int operation, List<string> src) { return m_LSL_Functions.llListStatistics(operation, src); }
453 public int llGetUnixTime() { return m_LSL_Functions.llGetUnixTime(); }
454 public int llGetParcelFlags(LSL_Types.Vector3 pos) { return m_LSL_Functions.llGetParcelFlags(pos); }
455 public int llGetRegionFlags() { return m_LSL_Functions.llGetRegionFlags(); }
456 public string llXorBase64StringsCorrect(string str1, string str2) { return m_LSL_Functions.llXorBase64StringsCorrect(str1, str2); }
457 public void llHTTPRequest(string url, List<string> parameters, string body) { m_LSL_Functions.llHTTPRequest(url, parameters, body); }
458 public void llResetLandBanList() { m_LSL_Functions.llResetLandBanList(); }
459 public void llResetLandPassList() { m_LSL_Functions.llResetLandPassList(); }
460 public int llGetParcelPrimCount(LSL_Types.Vector3 pos, int category, int sim_wide) { return m_LSL_Functions.llGetParcelPrimCount(pos, category, sim_wide); }
461 public List<string> llGetParcelPrimOwners(LSL_Types.Vector3 pos) { return m_LSL_Functions.llGetParcelPrimOwners(pos); }
462 public int llGetObjectPrimCount(string object_id) { return m_LSL_Functions.llGetObjectPrimCount(object_id); }
463 //
464 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
465 //
466 public int llGetParcelMaxPrims(LSL_Types.Vector3 pos, int sim_wide) { return m_LSL_Functions.llGetParcelMaxPrims(pos, sim_wide); }
467 public List<string> llGetParcelDetails(LSL_Types.Vector3 pos, List<string> param) { return m_LSL_Functions.llGetParcelDetails(pos, param); }
468
469 //
470 // OpenSim Functions
471 //
472 public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer) { return m_LSL_Functions.osSetDynamicTextureURL(dynamicID, contentType, url, extraParams, timer); }
473
474 // LSL CONSTANTS
475 public const int TRUE = 1;
476 public const int FALSE = 0;
477 public const int STATUS_PHYSICS = 1;
478 public const int STATUS_ROTATE_X = 2;
479 public const int STATUS_ROTATE_Y = 4;
480 public const int STATUS_ROTATE_Z = 8;
481 public const int STATUS_PHANTOM = 16;
482 public const int STATUS_SANDBOX = 32;
483 public const int STATUS_BLOCK_GRAB = 64;
484 public const int STATUS_DIE_AT_EDGE = 128;
485 public const int STATUS_RETURN_AT_EDGE = 256;
486 public const int AGENT = 1;
487 public const int ACTIVE = 2;
488 public const int PASSIVE = 4;
489 public const int SCRIPTED = 8;
490 public const int CONTROL_FWD = 1;
491 public const int CONTROL_BACK = 2;
492 public const int CONTROL_LEFT = 4;
493 public const int CONTROL_RIGHT = 8;
494 public const int CONTROL_UP = 16;
495 public const int CONTROL_DOWN = 32;
496 public const int CONTROL_ROT_LEFT = 256;
497 public const int CONTROL_ROT_RIGHT = 512;
498 public const int CONTROL_LBUTTON = 268435456;
499 public const int CONTROL_ML_LBUTTON = 1073741824;
500 public const int PERMISSION_DEBIT = 2;
501 public const int PERMISSION_TAKE_CONTROLS = 4;
502 public const int PERMISSION_REMAP_CONTROLS = 8;
503 public const int PERMISSION_TRIGGER_ANIMATION = 16;
504 public const int PERMISSION_ATTACH = 32;
505 public const int PERMISSION_RELEASE_OWNERSHIP = 64;
506 public const int PERMISSION_CHANGE_LINKS = 128;
507 public const int PERMISSION_CHANGE_JOINTS = 256;
508 public const int PERMISSION_CHANGE_PERMISSIONS = 512;
509 public const int PERMISSION_TRACK_CAMERA = 1024;
510 public const int AGENT_FLYING = 1;
511 public const int AGENT_ATTACHMENTS = 2;
512 public const int AGENT_SCRIPTED = 4;
513 public const int AGENT_MOUSELOOK = 8;
514 public const int AGENT_SITTING = 16;
515 public const int AGENT_ON_OBJECT = 32;
516 public const int AGENT_AWAY = 64;
517 public const int AGENT_WALKING = 128;
518 public const int AGENT_IN_AIR = 256;
519 public const int AGENT_TYPING = 512;
520 public const int AGENT_CROUCHING = 1024;
521 public const int AGENT_BUSY = 2048;
522 public const int AGENT_ALWAYS_RUN = 4096;
523 public const int PSYS_PART_INTERP_COLOR_MASK = 1;
524 public const int PSYS_PART_INTERP_SCALE_MASK = 2;
525 public const int PSYS_PART_BOUNCE_MASK = 4;
526 public const int PSYS_PART_WIND_MASK = 8;
527 public const int PSYS_PART_FOLLOW_SRC_MASK = 16;
528 public const int PSYS_PART_FOLLOW_VELOCITY_MASK = 32;
529 public const int PSYS_PART_TARGET_POS_MASK = 64;
530 public const int PSYS_PART_TARGET_LINEAR_MASK = 128;
531 public const int PSYS_PART_EMISSIVE_MASK = 256;
532 public const int PSYS_PART_FLAGS = 0;
533 public const int PSYS_PART_START_COLOR = 1;
534 public const int PSYS_PART_START_ALPHA = 2;
535 public const int PSYS_PART_END_COLOR = 3;
536 public const int PSYS_PART_END_ALPHA = 4;
537 public const int PSYS_PART_START_SCALE = 5;
538 public const int PSYS_PART_END_SCALE = 6;
539 public const int PSYS_PART_MAX_AGE = 7;
540 public const int PSYS_SRC_ACCEL = 8;
541 public const int PSYS_SRC_PATTERN = 9;
542 public const int PSYS_SRC_INNERANGLE = 10;
543 public const int PSYS_SRC_OUTERANGLE = 11;
544 public const int PSYS_SRC_TEXTURE = 12;
545 public const int PSYS_SRC_BURST_RATE = 13;
546 public const int PSYS_SRC_BURST_PART_COUNT = 15;
547 public const int PSYS_SRC_BURST_RADIUS = 16;
548 public const int PSYS_SRC_BURST_SPEED_MIN = 17;
549 public const int PSYS_SRC_BURST_SPEED_MAX = 18;
550 public const int PSYS_SRC_MAX_AGE = 19;
551 public const int PSYS_SRC_TARGET_KEY = 20;
552 public const int PSYS_SRC_OMEGA = 21;
553 public const int PSYS_SRC_ANGLE_BEGIN = 22;
554 public const int PSYS_SRC_ANGLE_END = 23;
555 public const int PSYS_SRC_PATTERN_DROP = 1;
556 public const int PSYS_SRC_PATTERN_EXPLODE = 2;
557 public const int PSYS_SRC_PATTERN_ANGLE = 4;
558 public const int PSYS_SRC_PATTERN_ANGLE_CONE = 8;
559 public const int PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY = 16;
560 public const int VEHICLE_TYPE_NONE = 0;
561 public const int VEHICLE_TYPE_SLED = 1;
562 public const int VEHICLE_TYPE_CAR = 2;
563 public const int VEHICLE_TYPE_BOAT = 3;
564 public const int VEHICLE_TYPE_AIRPLANE = 4;
565 public const int VEHICLE_TYPE_BALLOON = 5;
566 public const int VEHICLE_LINEAR_FRICTION_TIMESCALE = 16;
567 public const int VEHICLE_ANGULAR_FRICTION_TIMESCALE = 17;
568 public const int VEHICLE_LINEAR_MOTOR_DIRECTION = 18;
569 public const int VEHICLE_LINEAR_MOTOR_OFFSET = 20;
570 public const int VEHICLE_ANGULAR_MOTOR_DIRECTION = 19;
571 public const int VEHICLE_HOVER_HEIGHT = 24;
572 public const int VEHICLE_HOVER_EFFICIENCY = 25;
573 public const int VEHICLE_HOVER_TIMESCALE = 26;
574 public const int VEHICLE_BUOYANCY = 27;
575 public const int VEHICLE_LINEAR_DEFLECTION_EFFICIENCY = 28;
576 public const int VEHICLE_LINEAR_DEFLECTION_TIMESCALE = 29;
577 public const int VEHICLE_LINEAR_MOTOR_TIMESCALE = 30;
578 public const int VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE = 31;
579 public const int VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY = 32;
580 public const int VEHICLE_ANGULAR_DEFLECTION_TIMESCALE = 33;
581 public const int VEHICLE_ANGULAR_MOTOR_TIMESCALE = 34;
582 public const int VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE = 35;
583 public const int VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY = 36;
584 public const int VEHICLE_VERTICAL_ATTRACTION_TIMESCALE = 37;
585 public const int VEHICLE_BANKING_EFFICIENCY = 38;
586 public const int VEHICLE_BANKING_MIX = 39;
587 public const int VEHICLE_BANKING_TIMESCALE = 40;
588 public const int VEHICLE_REFERENCE_FRAME = 44;
589 public const int VEHICLE_FLAG_NO_DEFLECTION_UP = 1;
590 public const int VEHICLE_FLAG_LIMIT_ROLL_ONLY = 2;
591 public const int VEHICLE_FLAG_HOVER_WATER_ONLY = 4;
592 public const int VEHICLE_FLAG_HOVER_TERRAIN_ONLY = 8;
593 public const int VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT = 16;
594 public const int VEHICLE_FLAG_HOVER_UP_ONLY = 32;
595 public const int VEHICLE_FLAG_LIMIT_MOTOR_UP = 64;
596 public const int VEHICLE_FLAG_MOUSELOOK_STEER = 128;
597 public const int VEHICLE_FLAG_MOUSELOOK_BANK = 256;
598 public const int VEHICLE_FLAG_CAMERA_DECOUPLED = 512;
599 public const int INVENTORY_ALL = -1;
600 public const int INVENTORY_NONE = -1;
601 public const int INVENTORY_TEXTURE = 0;
602 public const int INVENTORY_SOUND = 1;
603 public const int INVENTORY_LANDMARK = 3;
604 public const int INVENTORY_CLOTHING = 5;
605 public const int INVENTORY_OBJECT = 6;
606 public const int INVENTORY_NOTECARD = 7;
607 public const int INVENTORY_SCRIPT = 10;
608 public const int INVENTORY_BODYPART = 13;
609 public const int INVENTORY_ANIMATION = 20;
610 public const int INVENTORY_GESTURE = 21;
611 public const int ATTACH_CHEST = 1;
612 public const int ATTACH_HEAD = 2;
613 public const int ATTACH_LSHOULDER = 3;
614 public const int ATTACH_RSHOULDER = 4;
615 public const int ATTACH_LHAND = 5;
616 public const int ATTACH_RHAND = 6;
617 public const int ATTACH_LFOOT = 7;
618 public const int ATTACH_RFOOT = 8;
619 public const int ATTACH_BACK = 9;
620 public const int ATTACH_PELVIS = 10;
621 public const int ATTACH_MOUTH = 11;
622 public const int ATTACH_CHIN = 12;
623 public const int ATTACH_LEAR = 13;
624 public const int ATTACH_REAR = 14;
625 public const int ATTACH_LEYE = 15;
626 public const int ATTACH_REYE = 16;
627 public const int ATTACH_NOSE = 17;
628 public const int ATTACH_RUARM = 18;
629 public const int ATTACH_RLARM = 19;
630 public const int ATTACH_LUARM = 20;
631 public const int ATTACH_LLARM = 21;
632 public const int ATTACH_RHIP = 22;
633 public const int ATTACH_RULEG = 23;
634 public const int ATTACH_RLLEG = 24;
635 public const int ATTACH_LHIP = 25;
636 public const int ATTACH_LULEG = 26;
637 public const int ATTACH_LLLEG = 27;
638 public const int ATTACH_BELLY = 28;
639 public const int ATTACH_RPEC = 29;
640 public const int ATTACH_LPEC = 30;
641 public const int LAND_LEVEL = 0;
642 public const int LAND_RAISE = 1;
643 public const int LAND_LOWER = 2;
644 public const int LAND_SMOOTH = 3;
645 public const int LAND_NOISE = 4;
646 public const int LAND_REVERT = 5;
647 public const int LAND_SMALL_BRUSH = 1;
648 public const int LAND_MEDIUM_BRUSH = 2;
649 public const int LAND_LARGE_BRUSH = 3;
650 public const int DATA_ONLINE = 1;
651 public const int DATA_NAME = 2;
652 public const int DATA_BORN = 3;
653 public const int DATA_RATING = 4;
654 public const int DATA_SIM_POS = 5;
655 public const int DATA_SIM_STATUS = 6;
656 public const int DATA_SIM_RATING = 7;
657 public const int ANIM_ON = 1;
658 public const int LOOP = 2;
659 public const int REVERSE = 4;
660 public const int PING_PONG = 8;
661 public const int SMOOTH = 16;
662 public const int ROTATE = 32;
663 public const int SCALE = 64;
664 public const int ALL_SIDES = -1;
665 public const int LINK_SET = -1;
666 public const int LINK_ROOT = 1;
667 public const int LINK_ALL_OTHERS = -2;
668 public const int LINK_ALL_CHILDREN = -3;
669 public const int LINK_THIS = -4;
670 public const int CHANGED_INVENTORY = 1;
671 public const int CHANGED_COLOR = 2;
672 public const int CHANGED_SHAPE = 4;
673 public const int CHANGED_SCALE = 8;
674 public const int CHANGED_TEXTURE = 16;
675 public const int CHANGED_LINK = 32;
676 public const int CHANGED_ALLOWED_DROP = 64;
677 public const int CHANGED_OWNER = 128;
678 public const int TYPE_INVALID = 0;
679 public const int TYPE_INTEGER = 1;
680 public const int TYPE_double = 2;
681 public const int TYPE_STRING = 3;
682 public const int TYPE_KEY = 4;
683 public const int TYPE_VECTOR = 5;
684 public const int TYPE_ROTATION = 6;
685 public const int REMOTE_DATA_CHANNEL = 1;
686 public const int REMOTE_DATA_REQUEST = 2;
687 public const int REMOTE_DATA_REPLY = 3;
688 //public const int PRIM_TYPE = 1;
689 public const int PRIM_MATERIAL = 2;
690 public const int PRIM_PHYSICS = 3;
691 public const int PRIM_TEMP_ON_REZ = 4;
692 public const int PRIM_PHANTOM = 5;
693 public const int PRIM_POSITION = 6;
694 public const int PRIM_SIZE = 7;
695 public const int PRIM_ROTATION = 8;
696 public const int PRIM_TYPE = 9;
697 public const int PRIM_TEXTURE = 17;
698 public const int PRIM_COLOR = 18;
699 public const int PRIM_BUMP_SHINY = 19;
700 public const int PRIM_FULLBRIGHT = 20;
701 public const int PRIM_FLEXIBLE = 21;
702 public const int PRIM_TEXGEN = 22;
703 public const int PRIM_TEXGEN_DEFAULT = 0;
704 public const int PRIM_TEXGEN_PLANAR = 1;
705 public const int PRIM_TYPE_BOX = 0;
706 public const int PRIM_TYPE_CYLINDER = 1;
707 public const int PRIM_TYPE_PRISM = 2;
708 public const int PRIM_TYPE_SPHERE = 3;
709 public const int PRIM_TYPE_TORUS = 4;
710 public const int PRIM_TYPE_TUBE = 5;
711 public const int PRIM_TYPE_RING = 6;
712 public const int PRIM_HOLE_DEFAULT = 0;
713 public const int PRIM_HOLE_CIRCLE = 16;
714 public const int PRIM_HOLE_SQUARE = 32;
715 public const int PRIM_HOLE_TRIANGLE = 48;
716 public const int PRIM_MATERIAL_STONE = 0;
717 public const int PRIM_MATERIAL_METAL = 1;
718 public const int PRIM_MATERIAL_GLASS = 2;
719 public const int PRIM_MATERIAL_WOOD = 3;
720 public const int PRIM_MATERIAL_FLESH = 4;
721 public const int PRIM_MATERIAL_PLASTIC = 5;
722 public const int PRIM_MATERIAL_RUBBER = 6;
723 public const int PRIM_MATERIAL_LIGHT = 7;
724 public const int PRIM_SHINY_NONE = 0;
725 public const int PRIM_SHINY_LOW = 1;
726 public const int PRIM_SHINY_MEDIUM = 2;
727 public const int PRIM_SHINY_HIGH = 3;
728 public const int PRIM_BUMP_NONE = 0;
729 public const int PRIM_BUMP_BRIGHT = 1;
730 public const int PRIM_BUMP_DARK = 2;
731 public const int PRIM_BUMP_WOOD = 3;
732 public const int PRIM_BUMP_BARK = 4;
733 public const int PRIM_BUMP_BRICKS = 5;
734 public const int PRIM_BUMP_CHECKER = 6;
735 public const int PRIM_BUMP_CONCRETE = 7;
736 public const int PRIM_BUMP_TILE = 8;
737 public const int PRIM_BUMP_STONE = 9;
738 public const int PRIM_BUMP_DISKS = 10;
739 public const int PRIM_BUMP_GRAVEL = 11;
740 public const int PRIM_BUMP_BLOBS = 12;
741 public const int PRIM_BUMP_SIDING = 13;
742 public const int PRIM_BUMP_LARGETILE = 14;
743 public const int PRIM_BUMP_STUCCO = 15;
744 public const int PRIM_BUMP_SUCTION = 16;
745 public const int PRIM_BUMP_WEAVE = 17;
746 public const int MASK_BASE = 0;
747 public const int MASK_OWNER = 1;
748 public const int MASK_GROUP = 2;
749 public const int MASK_EVERYONE = 3;
750 public const int MASK_NEXT = 4;
751 public const int PERM_TRANSFER = 8192;
752 public const int PERM_MODIFY = 16384;
753 public const int PERM_COPY = 32768;
754 public const int PERM_MOVE = 524288;
755 public const int PERM_ALL = 2147483647;
756 public const int PARCEL_MEDIA_COMMAND_STOP = 0;
757 public const int PARCEL_MEDIA_COMMAND_PAUSE = 1;
758 public const int PARCEL_MEDIA_COMMAND_PLAY = 2;
759 public const int PARCEL_MEDIA_COMMAND_LOOP = 3;
760 public const int PARCEL_MEDIA_COMMAND_TEXTURE = 4;
761 public const int PARCEL_MEDIA_COMMAND_URL = 5;
762 public const int PARCEL_MEDIA_COMMAND_TIME = 6;
763 public const int PARCEL_MEDIA_COMMAND_AGENT = 7;
764 public const int PARCEL_MEDIA_COMMAND_UNLOAD = 8;
765 public const int PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9;
766 public const int PAY_HIDE = -1;
767 public const int PAY_DEFAULT = -2;
768 public const string NULL_KEY = "00000000-0000-0000-0000-000000000000";
769 public const string EOF = "\n\n\n";
770 public const double PI = 3.14159274f;
771 public const double TWO_PI = 6.28318548f;
772 public const double PI_BY_TWO = 1.57079637f;
773 public const double DEG_TO_RAD = 0.01745329238f;
774 public const double RAD_TO_DEG = 57.29578f;
775 public const double SQRT2 = 1.414213538f;
776
777 // Can not be public const?
778 public LSL_Types.Vector3 ZERO_VECTOR = new LSL_Types.Vector3(0, 0, 0);
779 public LSL_Types.Quaternion ZERO_ROTATION = new LSL_Types.Quaternion(0, 0, 0, 0);
780
781
782
783 }
784}