aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scripting/Engines/LSLEngine/LSLHandler/LSO_Enums.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scripting/Engines/LSLEngine/LSLHandler/LSO_Enums.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scripting/Engines/LSLEngine/LSLHandler/LSO_Enums.cs548
1 files changed, 548 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scripting/Engines/LSLEngine/LSLHandler/LSO_Enums.cs b/OpenSim/Region/Environment/Scenes/Scripting/Engines/LSLEngine/LSLHandler/LSO_Enums.cs
new file mode 100644
index 0000000..7cac152
--- /dev/null
+++ b/OpenSim/Region/Environment/Scenes/Scripting/Engines/LSLEngine/LSLHandler/LSO_Enums.cs
@@ -0,0 +1,548 @@
1/*
2* Copyright (c) Contributors, http://www.openmetaverse.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28/* Original code: Tedd Hansen */
29using System;
30using System.Collections.Generic;
31using System.Text;
32
33namespace OpenSim.Region.Scripting.LSL
34{
35 static class LSO_Enums
36 {
37 //public System.Collections.Generic.Dictionary<Byte, Type> OpCode_Add_Types;
38
39 //LSO_Enums() {
40 // OpCode_Add_Types.Add(51, typeof(String));
41 // OpCode_Add_Types.Add(17, typeof(UInt32));
42 //}
43
44 public enum OpCode_Add_TypeDefs
45 {
46 String = 51,
47 UInt32 = 17
48 }
49 public enum OpCode_Cast_TypeDefs
50 {
51 String = 19
52 }
53
54#pragma warning disable 649
55
56 public struct Vector
57 {
58 public UInt32 Z;
59 public UInt32 Y;
60 public UInt32 X;
61 }
62
63 public struct Rotation
64 {
65 public UInt32 S;
66 public UInt32 Z;
67 public UInt32 Y;
68 public UInt32 X;
69 }
70
71#pragma warning restore 649
72
73 public enum Variable_Type_Codes
74 {
75 Void = 0,
76 Integer = 1,
77 Float = 2,
78 String = 3,
79 Key = 4,
80 Vector = 5,
81 Rotation = 6,
82 List = 7
83 }
84 public enum Event_Mask_Values
85 {
86 state_entry = 0,
87 state_exit = 1,
88 touch_start = 2,
89 touch = 3,
90 touch_end = 4,
91 collision_start = 5,
92 collision = 6,
93 collision_end = 7,
94 land_collision_start = 8,
95 land_collision = 9,
96 land_collision_end = 10,
97 timer = 11,
98 listen = 12,
99 on_rez = 13,
100 sensor = 14,
101 no_sensor = 15,
102 control = 16,
103 money = 17,
104 email = 18,
105 at_target = 19,
106 not_at_target = 20,
107 at_rot_target = 21,
108 not_at_rot_target = 22,
109 run_time_permissions = 23,
110 changed = 24,
111 attach = 25,
112 dataserver = 26,
113 link_message = 27,
114 moving_start = 28,
115 moving_end = 29,
116 object_rez = 30,
117 remote_data = 31,
118 http_response = 32
119 }
120 public enum Operation_Table
121 {
122 NOOP = 0x0,
123 POP = 0x1,
124 POPS = 0x2,
125 POPL = 0x3,
126 POPV = 0x4,
127 POPQ = 0x5,
128 POPARG = 0x6,
129 POPIP = 0x7,
130 POPBP = 0x8,
131 POPSP = 0x9,
132 POPSLR = 0xa,
133 DUP = 0x20,
134 DUPS = 0x21,
135 DUPL = 0x22,
136 DUPV = 0x23,
137 DUPQ = 0x24,
138 STORE = 0x30,
139 STORES = 0x31,
140 STOREL = 0x32,
141 STOREV = 0x33,
142 STOREQ = 0x34,
143 STOREG = 0x35,
144 STOREGS = 0x36,
145 STOREGL = 0x37,
146 STOREGV = 0x38,
147 STOREGQ = 0x39,
148 LOADP = 0x3a,
149 LOADSP = 0x3b,
150 LOADLP = 0x3c,
151 LOADVP = 0x3d,
152 LOADQP = 0x3e,
153 LOADGP = 0x3f,
154 LOADGSP = 0x40,
155 LOADGLP = 0x41,
156 LOADGVP = 0x42,
157 LOADGQP = 0x43,
158 PUSH = 0x50,
159 PUSHS = 0x51,
160 PUSHL = 0x52,
161 PUSHV = 0x53,
162 PUSHQ = 0x54,
163 PUSHG = 0x55,
164 PUSHGS = 0x56,
165 PUSHGL = 0x57,
166 PUSHGV = 0x58,
167 PUSHGQ = 0x59,
168 PUSHIP = 0x5a,
169 PUSHBP = 0x5b,
170 PUSHSP = 0x5c,
171 PUSHARGB = 0x5d,
172 PUSHARGI = 0x5e,
173 PUSHARGF = 0x5f,
174 PUSHARGS = 0x60,
175 PUSHARGV = 0x61,
176 PUSHARGQ = 0x62,
177 PUSHE = 0x63,
178 PUSHEV = 0x64,
179 PUSHEQ = 0x65,
180 PUSHARGE = 0x66,
181 ADD = 0x70,
182 SUB = 0x71,
183 MUL = 0x72,
184 DIV = 0x73,
185 MOD = 0x74,
186 EQ = 0x75,
187 NEQ = 0x76,
188 LEQ = 0x77,
189 GEQ = 0x78,
190 LESS = 0x79,
191 GREATER = 0x7a,
192 BITAND = 0x7b,
193 BITOR = 0x7c,
194 BITXOR = 0x7d,
195 BOOLAND = 0x7e,
196 BOOLOR = 0x7f,
197 NEG = 0x80,
198 BITNOT = 0x81,
199 BOOLNOT = 0x82,
200 JUMP = 0x90,
201 JUMPIF = 0x91,
202 JUMPNIF = 0x92,
203 STATE = 0x93,
204 CALL = 0x94,
205 RETURN = 0x95,
206 CAST = 0xa0,
207 STACKTOS = 0xb0,
208 STACKTOL = 0xb1,
209 PRINT = 0xc0,
210 CALLLIB = 0xd0,
211 CALLLIB_TWO_BYTE = 0xd1,
212 SHL = 0xe0,
213 SHR = 0xe1
214 }
215 public enum BuiltIn_Functions
216 {
217 llSin = 0,
218 llCos = 1,
219 llTan = 2,
220 llAtan2 = 3,
221 llSqrt = 4,
222 llPow = 5,
223 llAbs = 6,
224 llFabs = 7,
225 llFrand = 8,
226 llFloor = 9,
227 llCeil = 10,
228 llRound = 11,
229 llVecMag = 12,
230 llVecNorm = 13,
231 llVecDist = 14,
232 llRot2Euler = 15,
233 llEuler2Rot = 16,
234 llAxes2Rot = 17,
235 llRot2Fwd = 18,
236 llRot2Left = 19,
237 llRot2Up = 20,
238 llRotBetween = 21,
239 llWhisper = 22,
240 llSay = 23,
241 llShout = 24,
242 llListen = 25,
243 llListenControl = 26,
244 llListenRemove = 27,
245 llSensor = 28,
246 llSensorRepeat = 29,
247 llSensorRemove = 30,
248 llDetectedName = 31,
249 llDetectedKey = 32,
250 llDetectedOwner = 33,
251 llDetectedType = 34,
252 llDetectedPos = 35,
253 llDetectedVel = 36,
254 llDetectedGrab = 37,
255 llDetectedRot = 38,
256 llDetectedGroup = 39,
257 llDetectedLinkNumber = 40,
258 llDie = 41,
259 llGround = 42,
260 llCloud = 43,
261 llWind = 44,
262 llSetStatus = 45,
263 llGetStatus = 46,
264 llSetScale = 47,
265 llGetScale = 48,
266 llSetColor = 49,
267 llGetAlpha = 50,
268 llSetAlpha = 51,
269 llGetColor = 52,
270 llSetTexture = 53,
271 llScaleTexture = 54,
272 llOffsetTexture = 55,
273 llRotateTexture = 56,
274 llGetTexture = 57,
275 llSetPos = 58,
276 llGetPos = 59,
277 llGetLocalPos = 60,
278 llSetRot = 61,
279 llGetRot = 62,
280 llGetLocalRot = 63,
281 llSetForce = 64,
282 llGetForce = 65,
283 llTarget = 66,
284 llTargetRemove = 67,
285 llRotTarget = 68,
286 llRotTargetRemove = 69,
287 llMoveToTarget = 70,
288 llStopMoveToTarget = 71,
289 llApplyImpulse = 72,
290 llApplyRotationalImpulse = 73,
291 llSetTorque = 74,
292 llGetTorque = 75,
293 llSetForceAndTorque = 76,
294 llGetVel = 77,
295 llGetAccel = 78,
296 llGetOmega = 79,
297 llGetTimeOfDay = 80,
298 llGetWallclock = 81,
299 llGetTime = 82,
300 llResetTime = 83,
301 llGetAndResetTime = 84,
302 llSound = 85,
303 llPlaySound = 86,
304 llLoopSound = 87,
305 llLoopSoundMaster = 88,
306 llLoopSoundSlave = 89,
307 llPlaySoundSlave = 90,
308 llTriggerSound = 91,
309 llStopSound = 92,
310 llPreloadSound = 93,
311 llGetSubString = 94,
312 llDeleteSubString = 95,
313 llInsertString = 96,
314 llToUpper = 97,
315 llToLower = 98,
316 llGiveMoney = 99,
317 llMakeExplosion = 100,
318 llMakeFountain = 101,
319 llMakeSmoke = 102,
320 llMakeFire = 103,
321 llRezObject = 104,
322 llLookAt = 105,
323 llStopLookAt = 106,
324 llSetTimerEvent = 107,
325 llSleep = 108,
326 llGetMass = 109,
327 llCollisionFilter = 110,
328 llTakeControls = 111,
329 llReleaseControls = 112,
330 llAttachToAvatar = 113,
331 llDetachFromAvatar = 114,
332 llTakeCamera = 115,
333 llReleaseCamera = 116,
334 llGetOwner = 117,
335 llInstantMessage = 118,
336 llEmail = 119,
337 llGetNextEmail = 120,
338 llGetKey = 121,
339 llSetBuoyancy = 122,
340 llSetHoverHeight = 123,
341 llStopHover = 124,
342 llMinEventDelay = 125,
343 llSoundPreload = 126,
344 llRotLookAt = 127,
345 llStringLength = 128,
346 llStartAnimation = 129,
347 llStopAnimation = 130,
348 llPointAt = 131,
349 llStopPointAt = 132,
350 llTargetOmega = 133,
351 llGetStartParameter = 134,
352 llGodLikeRezObject = 135,
353 llRequestPermissions = 136,
354 llGetPermissionsKey = 137,
355 llGetPermissions = 138,
356 llGetLinkNumber = 139,
357 llSetLinkColor = 140,
358 llCreateLink = 141,
359 llBreakLink = 142,
360 llBreakAllLinks = 143,
361 llGetLinkKey = 144,
362 llGetLinkName = 145,
363 llGetInventoryNumber = 146,
364 llGetInventoryName = 147,
365 llSetScriptState = 148,
366 llGetEnergy = 149,
367 llGiveInventory = 150,
368 llRemoveInventory = 151,
369 llSetText = 152,
370 llWater = 153,
371 llPassTouches = 154,
372 llRequestAgentData = 155,
373 llRequestInventoryData = 156,
374 llSetDamage = 157,
375 llTeleportAgentHome = 158,
376 llModifyLand = 159,
377 llCollisionSound = 160,
378 llCollisionSprite = 161,
379 llGetAnimation = 162,
380 llResetScript = 163,
381 llMessageLinked = 164,
382 llPushObject = 165,
383 llPassCollisions = 166,
384 llGetScriptName = 167,
385 llGetNumberOfSides = 168,
386 llAxisAngle2Rot = 169,
387 llRot2Axis = 170,
388 llRot2Angle = 171,
389 llAcos = 172,
390 llAsin = 173,
391 llAngleBetween = 174,
392 llGetInventoryKey = 175,
393 llAllowInventoryDrop = 176,
394 llGetSunDirection = 177,
395 llGetTextureOffset = 178,
396 llGetTextureScale = 179,
397 llGetTextureRot = 180,
398 llSubStringIndex = 181,
399 llGetOwnerKey = 182,
400 llGetCenterOfMass = 183,
401 llListSort = 184,
402 llGetListLength = 185,
403 llList2Integer = 186,
404 llList2Float = 187,
405 llList2String = 188,
406 llList2Key = 189,
407 llList2Vector = 190,
408 llList2Rot = 191,
409 llList2List = 192,
410 llDeleteSubList = 193,
411 llGetListEntryType = 194,
412 llList2CSV = 195,
413 llCSV2List = 196,
414 llListRandomize = 197,
415 llList2ListStrided = 198,
416 llGetRegionCorner = 199,
417 llListInsertList = 200,
418 llListFindList = 201,
419 llGetObjectName = 202,
420 llSetObjectName = 203,
421 llGetDate = 204,
422 llEdgeOfWorld = 205,
423 llGetAgentInfo = 206,
424 llAdjustSoundVolume = 207,
425 llSetSoundQueueing = 208,
426 llSetSoundRadius = 209,
427 llKey2Name = 210,
428 llSetTextureAnim = 211,
429 llTriggerSoundLimited = 212,
430 llEjectFromLand = 213,
431 llParseString2List = 214,
432 llOverMyLand = 215,
433 llGetLandOwnerAt = 216,
434 llGetNotecardLine = 217,
435 llGetAgentSize = 218,
436 llSameGroup = 219,
437 llUnSit = 220,
438 llGroundSlope = 221,
439 llGroundNormal = 222,
440 llGroundContour = 223,
441 llGetAttached = 224,
442 llGetFreeMemory = 225,
443 llGetRegionName = 226,
444 llGetRegionTimeDilation = 227,
445 llGetRegionFPS = 228,
446 llParticleSystem = 229,
447 llGroundRepel = 230,
448 llGiveInventoryList = 231,
449 llSetVehicleType = 232,
450 llSetVehicleFloatParam = 233,
451 llSetVehicleVectorParam = 234,
452 llSetVehicleRotationParam = 235,
453 llSetVehicleFlags = 236,
454 llRemoveVehicleFlags = 237,
455 llSitTarget = 238,
456 llAvatarOnSitTarget = 239,
457 llAddToLandPassList = 240,
458 llSetTouchText = 241,
459 llSetSitText = 242,
460 llSetCameraEyeOffset = 243,
461 llSetCameraAtOffset = 244,
462 llDumpList2String = 245,
463 llScriptDanger = 246,
464 llDialog = 247,
465 llVolumeDetect = 248,
466 llResetOtherScript = 249,
467 llGetScriptState = 250,
468 llRemoteLoadScript = 251,
469 llSetRemoteScriptAccessPin = 252,
470 llRemoteLoadScriptPin = 253,
471 llOpenRemoteDataChannel = 254,
472 llSendRemoteData = 255,
473 llRemoteDataReply = 256,
474 llCloseRemoteDataChannel = 257,
475 llMD5String = 258,
476 llSetPrimitiveParams = 259,
477 llStringToBase64 = 260,
478 llBase64ToString = 261,
479 llXorBase64Strings = 262,
480 llRemoteDataSetRegion = 263,
481 llLog10 = 264,
482 llLog = 265,
483 llGetAnimationList = 266,
484 llSetParcelMusicURL = 267,
485 llGetRootPosition = 268,
486 llGetRootRotation = 269,
487 llGetObjectDesc = 270,
488 llSetObjectDesc = 271,
489 llGetCreator = 272,
490 llGetTimestamp = 273,
491 llSetLinkAlpha = 274,
492 llGetNumberOfPrims = 275,
493 llGetNumberOfNotecardLines = 276,
494 llGetBoundingBox = 277,
495 llGetGeometricCenter = 278,
496 llGetPrimitiveParams = 279,
497 llIntegerToBase64 = 280,
498 llBase64ToInteger = 281,
499 llGetGMTclock = 282,
500 llGetSimulatorHostname = 283,
501 llSetLocalRot = 284,
502 llParseStringKeepNulls = 285,
503 llRezAtRoot = 286,
504 llGetObjectPermMask = 287,
505 llSetObjectPermMask = 288,
506 llGetInventoryPermMask = 289,
507 llSetInventoryPermMask = 290,
508 llGetInventoryCreator = 291,
509 llOwnerSay = 292,
510 llRequestSimulatorData = 293,
511 llForceMouselook = 294,
512 llGetObjectMass = 295,
513 llListReplaceList = 296,
514 llLoadURL = 297,
515 llParcelMediaCommandList = 298,
516 llParcelMediaQuery = 299,
517 llModPow = 300,
518 llGetInventoryType = 301,
519 llSetPayPrice = 302,
520 llGetCameraPos = 303,
521 llGetCameraRot = 304,
522 llSetPrimURL = 305,
523 llRefreshPrimURL = 306,
524 llEscapeURL = 307,
525 llUnescapeURL = 308,
526 llMapDestination = 309,
527 llAddToLandBanList = 310,
528 llRemoveFromLandPassList = 311,
529 llRemoveFromLandBanList = 312,
530 llSetCameraParams = 313,
531 llClearCameraParams = 314,
532 llListStatistics = 315,
533 llGetUnixTime = 316,
534 llGetParcelFlags = 317,
535 llGetRegionFlags = 318,
536 llXorBase64StringsCorrect = 319,
537 llHTTPRequest = 320,
538 llResetLandBanList = 321,
539 llResetLandPassList = 322,
540 llGetParcelPrimCount = 323,
541 llGetParcelPrimOwners = 324,
542 llGetObjectPrimCount = 325,
543 llGetParcelMaxPrims = 326,
544 llGetParcelDetails = 327
545 }
546
547 }
548}