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