diff options
author | onefang | 2019-09-11 16:36:50 +1000 |
---|---|---|
committer | onefang | 2019-09-11 16:36:50 +1000 |
commit | 50cd1ffd32f69228e566f2b0b89f86ea0d9fe489 (patch) | |
tree | 52f2ab0c04f1a5d7d6ac5dc872981b4b156447e7 /OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs | |
parent | Renamed branch to SledjChisl. (diff) | |
parent | Bump to release flavour, build 0. (diff) | |
download | opensim-SC_OLD-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.zip opensim-SC_OLD-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.tar.gz opensim-SC_OLD-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.tar.bz2 opensim-SC_OLD-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.tar.xz |
Merge branch 'SledjChisl'
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs | 79 |
1 files changed, 70 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs index 9aecea2..2f249a7 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs | |||
@@ -29,6 +29,7 @@ using System; | |||
29 | using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3; | 29 | using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3; |
30 | using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion; | 30 | using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion; |
31 | using LSLInteger = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger; | 31 | using LSLInteger = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger; |
32 | using LSLString = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; | ||
32 | 33 | ||
33 | namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | 34 | namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase |
34 | { | 35 | { |
@@ -57,7 +58,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
57 | public const int ACTIVE = 2; | 58 | public const int ACTIVE = 2; |
58 | public const int PASSIVE = 4; | 59 | public const int PASSIVE = 4; |
59 | public const int SCRIPTED = 8; | 60 | public const int SCRIPTED = 8; |
60 | public const int OS_NPC = 0x01000000; | ||
61 | 61 | ||
62 | public const int CONTROL_FWD = 1; | 62 | public const int CONTROL_FWD = 1; |
63 | public const int CONTROL_BACK = 2; | 63 | public const int CONTROL_BACK = 2; |
@@ -82,6 +82,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
82 | public const int PERMISSION_CHANGE_PERMISSIONS = 512; | 82 | public const int PERMISSION_CHANGE_PERMISSIONS = 512; |
83 | public const int PERMISSION_TRACK_CAMERA = 1024; | 83 | public const int PERMISSION_TRACK_CAMERA = 1024; |
84 | public const int PERMISSION_CONTROL_CAMERA = 2048; | 84 | public const int PERMISSION_CONTROL_CAMERA = 2048; |
85 | public const int PERMISSION_TELEPORT = 4096; | ||
86 | public const int PERMISSION_OVERRIDE_ANIMATIONS = 0x8000; | ||
85 | 87 | ||
86 | public const int AGENT_FLYING = 1; | 88 | public const int AGENT_FLYING = 1; |
87 | public const int AGENT_ATTACHMENTS = 2; | 89 | public const int AGENT_ATTACHMENTS = 2; |
@@ -96,6 +98,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
96 | public const int AGENT_CROUCHING = 1024; | 98 | public const int AGENT_CROUCHING = 1024; |
97 | public const int AGENT_BUSY = 2048; | 99 | public const int AGENT_BUSY = 2048; |
98 | public const int AGENT_ALWAYS_RUN = 4096; | 100 | public const int AGENT_ALWAYS_RUN = 4096; |
101 | public const int AGENT_MALE = 8192; | ||
99 | 102 | ||
100 | //Particle Systems | 103 | //Particle Systems |
101 | public const int PSYS_PART_INTERP_COLOR_MASK = 1; | 104 | public const int PSYS_PART_INTERP_COLOR_MASK = 1; |
@@ -252,6 +255,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
252 | public const int ATTACH_HUD_BOTTOM_RIGHT = 38; | 255 | public const int ATTACH_HUD_BOTTOM_RIGHT = 38; |
253 | public const int ATTACH_NECK = 39; | 256 | public const int ATTACH_NECK = 39; |
254 | public const int ATTACH_AVATAR_CENTER = 40; | 257 | public const int ATTACH_AVATAR_CENTER = 40; |
258 | public const int ATTACH_LHAND_RING1 = 41; | ||
259 | public const int ATTACH_RHAND_RING1 = 42; | ||
260 | public const int ATTACH_TAIL_BASE = 43; | ||
261 | public const int ATTACH_TAIL_TIP = 44; | ||
262 | public const int ATTACH_LWING = 45; | ||
263 | public const int ATTACH_RWING = 46; | ||
264 | public const int ATTACH_FACE_JAW = 47; | ||
265 | public const int ATTACH_FACE_LEAR = 48; | ||
266 | public const int ATTACH_FACE_REAR = 49; | ||
267 | public const int ATTACH_FACE_LEYE = 50; | ||
268 | public const int ATTACH_FACE_REYE = 51; | ||
269 | public const int ATTACH_FACE_TONGUE = 52; | ||
270 | public const int ATTACH_GROIN = 53; | ||
271 | public const int ATTACH_HIND_LFOOT = 54; | ||
272 | public const int ATTACH_HIND_RFOOT = 55; | ||
255 | 273 | ||
256 | #region osMessageAttachments constants | 274 | #region osMessageAttachments constants |
257 | 275 | ||
@@ -334,11 +352,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
334 | public const int ROTATE = 32; | 352 | public const int ROTATE = 32; |
335 | public const int SCALE = 64; | 353 | public const int SCALE = 64; |
336 | public const int ALL_SIDES = -1; | 354 | public const int ALL_SIDES = -1; |
355 | |||
356 | // LINK flags | ||
337 | public const int LINK_SET = -1; | 357 | public const int LINK_SET = -1; |
338 | public const int LINK_ROOT = 1; | 358 | public const int LINK_ROOT = 1; |
339 | public const int LINK_ALL_OTHERS = -2; | 359 | public const int LINK_ALL_OTHERS = -2; |
340 | public const int LINK_ALL_CHILDREN = -3; | 360 | public const int LINK_ALL_CHILDREN = -3; |
341 | public const int LINK_THIS = -4; | 361 | public const int LINK_THIS = -4; |
362 | |||
342 | public const int CHANGED_INVENTORY = 1; | 363 | public const int CHANGED_INVENTORY = 1; |
343 | public const int CHANGED_COLOR = 2; | 364 | public const int CHANGED_COLOR = 2; |
344 | public const int CHANGED_SHAPE = 4; | 365 | public const int CHANGED_SHAPE = 4; |
@@ -353,6 +374,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
353 | public const int CHANGED_REGION_START = 1024; //LL Changed the constant from CHANGED_REGION_RESTART | 374 | public const int CHANGED_REGION_START = 1024; //LL Changed the constant from CHANGED_REGION_RESTART |
354 | public const int CHANGED_MEDIA = 2048; | 375 | public const int CHANGED_MEDIA = 2048; |
355 | public const int CHANGED_ANIMATION = 16384; | 376 | public const int CHANGED_ANIMATION = 16384; |
377 | public const int CHANGED_POSITION = 32768; | ||
378 | |||
356 | public const int TYPE_INVALID = 0; | 379 | public const int TYPE_INVALID = 0; |
357 | public const int TYPE_INTEGER = 1; | 380 | public const int TYPE_INTEGER = 1; |
358 | public const int TYPE_FLOAT = 2; | 381 | public const int TYPE_FLOAT = 2; |
@@ -386,6 +409,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
386 | public const int CONTENT_TYPE_FORM = 7; //application/x-www-form-urlencoded | 409 | public const int CONTENT_TYPE_FORM = 7; //application/x-www-form-urlencoded |
387 | public const int CONTENT_TYPE_RSS = 8; //application/rss+xml | 410 | public const int CONTENT_TYPE_RSS = 8; //application/rss+xml |
388 | 411 | ||
412 | //parameters comand flags | ||
389 | public const int PRIM_MATERIAL = 2; | 413 | public const int PRIM_MATERIAL = 2; |
390 | public const int PRIM_PHYSICS = 3; | 414 | public const int PRIM_PHYSICS = 3; |
391 | public const int PRIM_TEMP_ON_REZ = 4; | 415 | public const int PRIM_TEMP_ON_REZ = 4; |
@@ -394,19 +418,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
394 | public const int PRIM_SIZE = 7; | 418 | public const int PRIM_SIZE = 7; |
395 | public const int PRIM_ROTATION = 8; | 419 | public const int PRIM_ROTATION = 8; |
396 | public const int PRIM_TYPE = 9; | 420 | public const int PRIM_TYPE = 9; |
421 | // gap 10-16 | ||
397 | public const int PRIM_TEXTURE = 17; | 422 | public const int PRIM_TEXTURE = 17; |
398 | public const int PRIM_COLOR = 18; | 423 | public const int PRIM_COLOR = 18; |
399 | public const int PRIM_BUMP_SHINY = 19; | 424 | public const int PRIM_BUMP_SHINY = 19; |
400 | public const int PRIM_FULLBRIGHT = 20; | 425 | public const int PRIM_FULLBRIGHT = 20; |
401 | public const int PRIM_FLEXIBLE = 21; | 426 | public const int PRIM_FLEXIBLE = 21; |
402 | public const int PRIM_TEXGEN = 22; | 427 | public const int PRIM_TEXGEN = 22; |
403 | public const int PRIM_CAST_SHADOWS = 24; // Not implemented, here for completeness sake | ||
404 | public const int PRIM_POINT_LIGHT = 23; // Huh? | 428 | public const int PRIM_POINT_LIGHT = 23; // Huh? |
429 | public const int PRIM_CAST_SHADOWS = 24; // Not implemented, here for completeness sake | ||
405 | public const int PRIM_GLOW = 25; | 430 | public const int PRIM_GLOW = 25; |
406 | public const int PRIM_TEXT = 26; | 431 | public const int PRIM_TEXT = 26; |
407 | public const int PRIM_NAME = 27; | 432 | public const int PRIM_NAME = 27; |
408 | public const int PRIM_DESC = 28; | 433 | public const int PRIM_DESC = 28; |
409 | public const int PRIM_ROT_LOCAL = 29; | 434 | public const int PRIM_ROT_LOCAL = 29; |
435 | public const int PRIM_PHYSICS_SHAPE_TYPE = 30; | ||
436 | public const int PRIM_PHYSICS_MATERIAL = 31; // apparently not on SL wiki | ||
410 | public const int PRIM_OMEGA = 32; | 437 | public const int PRIM_OMEGA = 32; |
411 | public const int PRIM_POS_LOCAL = 33; | 438 | public const int PRIM_POS_LOCAL = 33; |
412 | public const int PRIM_LINK_TARGET = 34; | 439 | public const int PRIM_LINK_TARGET = 34; |
@@ -414,6 +441,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
414 | public const int PRIM_SPECULAR = 36; | 441 | public const int PRIM_SPECULAR = 36; |
415 | public const int PRIM_NORMAL = 37; | 442 | public const int PRIM_NORMAL = 37; |
416 | public const int PRIM_ALPHA_MODE = 38; | 443 | public const int PRIM_ALPHA_MODE = 38; |
444 | public const int PRIM_ALLOW_UNSIT = 39; // experiences related. unsupported | ||
445 | public const int PRIM_SCRIPTED_SIT_ONLY = 40; // experiences related. unsupported | ||
446 | public const int PRIM_SIT_TARGET = 41; | ||
447 | |||
448 | |||
449 | // parameters | ||
417 | public const int PRIM_TEXGEN_DEFAULT = 0; | 450 | public const int PRIM_TEXGEN_DEFAULT = 0; |
418 | public const int PRIM_TEXGEN_PLANAR = 1; | 451 | public const int PRIM_TEXGEN_PLANAR = 1; |
419 | 452 | ||
@@ -470,6 +503,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
470 | public const int PRIM_SCULPT_FLAG_INVERT = 64; | 503 | public const int PRIM_SCULPT_FLAG_INVERT = 64; |
471 | public const int PRIM_SCULPT_FLAG_MIRROR = 128; | 504 | public const int PRIM_SCULPT_FLAG_MIRROR = 128; |
472 | 505 | ||
506 | public const int PRIM_PHYSICS_SHAPE_PRIM = 0; | ||
507 | public const int PRIM_PHYSICS_SHAPE_NONE = 1; | ||
508 | public const int PRIM_PHYSICS_SHAPE_CONVEX = 2; | ||
509 | |||
473 | public const int PROFILE_NONE = 0; | 510 | public const int PROFILE_NONE = 0; |
474 | public const int PROFILE_SCRIPT_MEMORY = 1; | 511 | public const int PROFILE_SCRIPT_MEMORY = 1; |
475 | 512 | ||
@@ -600,6 +637,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
600 | public const int OBJECT_HOVER_HEIGHT = 25; | 637 | public const int OBJECT_HOVER_HEIGHT = 25; |
601 | public const int OBJECT_BODY_SHAPE_TYPE = 26; | 638 | public const int OBJECT_BODY_SHAPE_TYPE = 26; |
602 | public const int OBJECT_LAST_OWNER_ID = 27; | 639 | public const int OBJECT_LAST_OWNER_ID = 27; |
640 | public const int OBJECT_CLICK_ACTION = 28; | ||
641 | public const int OBJECT_OMEGA = 29; | ||
642 | public const int OBJECT_PRIM_COUNT = 30; | ||
643 | public const int OBJECT_TOTAL_INVENTORY_COUNT = 31; | ||
644 | public const int OBJECT_REZZER_KEY = 32; | ||
645 | public const int OBJECT_GROUP_TAG = 33; | ||
646 | public const int OBJECT_TEMP_ATTACHED = 34; | ||
647 | public const int OBJECT_ATTACHED_SLOTS_AVAILABLE = 35; | ||
603 | 648 | ||
604 | // Pathfinding types | 649 | // Pathfinding types |
605 | public const int OPT_OTHER = -1; | 650 | public const int OPT_OTHER = -1; |
@@ -615,6 +660,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
615 | public const int AGENT_LIST_PARCEL = 1; | 660 | public const int AGENT_LIST_PARCEL = 1; |
616 | public const int AGENT_LIST_PARCEL_OWNER = 2; | 661 | public const int AGENT_LIST_PARCEL_OWNER = 2; |
617 | public const int AGENT_LIST_REGION = 4; | 662 | public const int AGENT_LIST_REGION = 4; |
663 | public const int AGENT_LIST_EXCLUDENPC = 0x4000000; // our flag, not SL and it is a bit mask | ||
618 | 664 | ||
619 | // Can not be public const? | 665 | // Can not be public const? |
620 | public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0); | 666 | public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0); |
@@ -652,7 +698,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
652 | public const int PARCEL_DETAILS_GROUP = 3; | 698 | public const int PARCEL_DETAILS_GROUP = 3; |
653 | public const int PARCEL_DETAILS_AREA = 4; | 699 | public const int PARCEL_DETAILS_AREA = 4; |
654 | public const int PARCEL_DETAILS_ID = 5; | 700 | public const int PARCEL_DETAILS_ID = 5; |
655 | public const int PARCEL_DETAILS_SEE_AVATARS = 6; // not implemented | 701 | public const int PARCEL_DETAILS_SEE_AVATARS = 6; |
702 | public const int PARCEL_DETAILS_ANY_AVATAR_SOUNDS = 7; | ||
703 | public const int PARCEL_DETAILS_GROUP_SOUNDS = 8; | ||
656 | 704 | ||
657 | //osSetParcelDetails | 705 | //osSetParcelDetails |
658 | public const int PARCEL_DETAILS_CLAIMDATE = 10; | 706 | public const int PARCEL_DETAILS_CLAIMDATE = 10; |
@@ -698,12 +746,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
698 | public const int PRIM_MEDIA_PERM_GROUP = 2; | 746 | public const int PRIM_MEDIA_PERM_GROUP = 2; |
699 | public const int PRIM_MEDIA_PERM_ANYONE = 4; | 747 | public const int PRIM_MEDIA_PERM_ANYONE = 4; |
700 | 748 | ||
701 | public const int PRIM_PHYSICS_SHAPE_TYPE = 30; | ||
702 | public const int PRIM_PHYSICS_SHAPE_PRIM = 0; | ||
703 | public const int PRIM_PHYSICS_SHAPE_CONVEX = 2; | ||
704 | public const int PRIM_PHYSICS_SHAPE_NONE = 1; | ||
705 | |||
706 | public const int PRIM_PHYSICS_MATERIAL = 31; | ||
707 | public const int DENSITY = 1; | 749 | public const int DENSITY = 1; |
708 | public const int FRICTION = 2; | 750 | public const int FRICTION = 2; |
709 | public const int RESTITUTION = 4; | 751 | public const int RESTITUTION = 4; |
@@ -760,6 +802,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
760 | public const int OS_NPC_CREATOR_OWNED = 0x1; | 802 | public const int OS_NPC_CREATOR_OWNED = 0x1; |
761 | public const int OS_NPC_NOT_OWNED = 0x2; | 803 | public const int OS_NPC_NOT_OWNED = 0x2; |
762 | public const int OS_NPC_SENSE_AS_AGENT = 0x4; | 804 | public const int OS_NPC_SENSE_AS_AGENT = 0x4; |
805 | public const int OS_NPC_OBJECT_GROUP = 0x08; | ||
763 | 806 | ||
764 | public const string URL_REQUEST_GRANTED = "URL_REQUEST_GRANTED"; | 807 | public const string URL_REQUEST_GRANTED = "URL_REQUEST_GRANTED"; |
765 | public const string URL_REQUEST_DENIED = "URL_REQUEST_DENIED"; | 808 | public const string URL_REQUEST_DENIED = "URL_REQUEST_DENIED"; |
@@ -795,6 +838,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
795 | public const int KFM_CMD_STOP = 1; | 838 | public const int KFM_CMD_STOP = 1; |
796 | public const int KFM_CMD_PAUSE = 2; | 839 | public const int KFM_CMD_PAUSE = 2; |
797 | 840 | ||
841 | public const string JSON_INVALID = "\uFDD0"; | ||
842 | public const string JSON_OBJECT = "\uFDD1"; | ||
843 | public const string JSON_ARRAY = "\uFDD2"; | ||
844 | public const string JSON_NUMBER = "\uFDD3"; | ||
845 | public const string JSON_STRING = "\uFDD4"; | ||
846 | public const string JSON_NULL = "\uFDD5"; | ||
847 | public const string JSON_TRUE = "\uFDD6"; | ||
848 | public const string JSON_FALSE = "\uFDD7"; | ||
849 | public const string JSON_DELETE = "\uFDD8"; | ||
850 | public const string JSON_APPEND = "-1"; | ||
851 | |||
798 | /// <summary> | 852 | /// <summary> |
799 | /// process name parameter as regex | 853 | /// process name parameter as regex |
800 | /// </summary> | 854 | /// </summary> |
@@ -804,5 +858,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
804 | /// process message parameter as regex | 858 | /// process message parameter as regex |
805 | /// </summary> | 859 | /// </summary> |
806 | public const int OS_LISTEN_REGEX_MESSAGE = 0x2; | 860 | public const int OS_LISTEN_REGEX_MESSAGE = 0x2; |
861 | |||
862 | // for osTeleportObject | ||
863 | public const int OSTPOBJ_NONE = 0x0; | ||
864 | public const int OSTPOBJ_STOPATTARGET = 0x1; // stops at destination | ||
865 | public const int OSTPOBJ_STOPONFAIL = 0x2; // stops at jump point if tp fails | ||
866 | public const int OSTPOBJ_SETROT = 0x4; // the rotation is the final rotation, otherwise is a added rotation | ||
867 | |||
807 | } | 868 | } |
808 | } | 869 | } |