From a026b3c6cbcbe911ef1ca506c1a6dd22feeb3568 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 10 Aug 2014 04:16:31 +1000 Subject: Got most of the LSL constants now, except the OS ones. --- lib/LSL.lua | 434 ++++++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 366 insertions(+), 68 deletions(-) diff --git a/lib/LSL.lua b/lib/LSL.lua index 1b6a8bd..1fadb65 100644 --- a/lib/LSL.lua +++ b/lib/LSL.lua @@ -235,22 +235,134 @@ local constants = newConst("float", "RAD_TO_DEG", 180.0 / LSL.PI), -- 57.2957795131 newConst("float", "SQRT2", 1.4142135623730950488016887242097), - newConst("integer", "CHANGED_INVENTORY", 0x001), - newConst("integer", "CHANGED_COLOR", 0x002), - newConst("integer", "CHANGED_SHAPE", 0x004), - newConst("integer", "CHANGED_SCALE", 0x008), - newConst("integer", "CHANGED_TEXTURE", 0x010), - newConst("integer", "CHANGED_LINK", 0x020), - newConst("integer", "CHANGED_ALLOWED_DROP", 0x040), - newConst("integer", "CHANGED_OWNER", 0x080), - newConst("integer", "CHANGED_REGION", 0x100), - newConst("integer", "CHANGED_TELEPORT", 0x200), - newConst("integer", "CHANGED_REGION_START", 0x400), - newConst("integer", "CHANGED_MEDIA", 0x800), + newConst("integer", "AGENT_FLYING", 0x0001), + newConst("integer", "AGENT_ATTACHMENTS", 0x0002), + newConst("integer", "AGENT_SCRIPTED", 0x0004), + newConst("integer", "AGENT_MOUSELOOK", 0x0008), + newConst("integer", "AGENT_SITTING", 0x0010), + newConst("integer", "AGENT_ON_OBJECT", 0x0020), + newConst("integer", "AGENT_AWAY", 0x0040), + newConst("integer", "AGENT_WALKING", 0x0080), + newConst("integer", "AGENT_IN_AIR", 0x0100), + newConst("integer", "AGENT_TYPING", 0x0200), + newConst("integer", "AGENT_CROUCHING", 0x0400), + newConst("integer", "AGENT_BUSY", 0x0800), + newConst("integer", "AGENT_ALWAYS_RUN", 0x1000), + + newConst("integer", "ATTACH_CHEST", 1), + newConst("integer", "ATTACH_HEAD", 2), + newConst("integer", "ATTACH_LSHOULDER", 3), + newConst("integer", "ATTACH_RSHOULDER", 4), + newConst("integer", "ATTACH_LHAND", 5), + newConst("integer", "ATTACH_RHAND", 6), + newConst("integer", "ATTACH_LFOOT", 7), + newConst("integer", "ATTACH_RFOOT", 8), + newConst("integer", "ATTACH_BACK", 9), + newConst("integer", "ATTACH_PELVIS", 10), + newConst("integer", "ATTACH_MOUTH", 11), + newConst("integer", "ATTACH_CHIN", 12), + newConst("integer", "ATTACH_LEAR", 13), + newConst("integer", "ATTACH_REAR", 14), + newConst("integer", "ATTACH_LEYE", 15), + newConst("integer", "ATTACH_REYE", 16), + newConst("integer", "ATTACH_NOSE", 17), + newConst("integer", "ATTACH_RUARM", 18), + newConst("integer", "ATTACH_RLARM", 19), + newConst("integer", "ATTACH_LUARM", 20), + newConst("integer", "ATTACH_LLARM", 21), + newConst("integer", "ATTACH_RHIP", 22), + newConst("integer", "ATTACH_RULEG", 23), + newConst("integer", "ATTACH_RLLEG", 24), + newConst("integer", "ATTACH_LHIP", 25), + newConst("integer", "ATTACH_LULEG", 26), + newConst("integer", "ATTACH_LLLEG", 27), + newConst("integer", "ATTACH_BELLY", 28), + newConst("integer", "ATTACH_RPEC", 29), + newConst("integer", "ATTACH_LPEC", 30), + newConst("integer", "ATTACH_HUD_CENTER_2", 31), + newConst("integer", "ATTACH_HUD_TOP_RIGHT", 32), + newConst("integer", "ATTACH_HUD_TOP_CENTER", 33), + newConst("integer", "ATTACH_HUD_TOP_LEFT", 34), + newConst("integer", "ATTACH_HUD_CENTER_1", 35), + newConst("integer", "ATTACH_HUD_BOTTOM_LEFT", 36), + newConst("integer", "ATTACH_HUD_BOTTOM", 37), + newConst("integer", "ATTACH_HUD_BOTTOM_RIGHT",38), + + newConst("integer", "CAMERA_PITCH", 0), + newConst("integer", "CAMERA_FOCUS_OFFSET", 1), + newConst("integer", "CAMERA_FOCUS_OFFSET_X", 2), + newConst("integer", "CAMERA_FOCUS_OFFSET_Y", 3), + newConst("integer", "CAMERA_FOCUS_OFFSET_Z", 4), + newConst("integer", "CAMERA_POSITION_LAG", 5), + newConst("integer", "CAMERA_FOCUS_LAG", 6), + newConst("integer", "CAMERA_DISTANCE", 7), + newConst("integer", "CAMERA_BEHINDNESS_ANGLE", 8), + newConst("integer", "CAMERA_BEHINDNESS_LAG", 9), + newConst("integer", "CAMERA_POSITION_THRESHOLD", 10), + newConst("integer", "CAMERA_FOCUS_THRESHOLD", 11), + newConst("integer", "CAMERA_ACTIVE", 12), + newConst("integer", "CAMERA_POSITION", 13), + newConst("integer", "CAMERA_POSITION_X", 14), + newConst("integer", "CAMERA_POSITION_Y", 15), + newConst("integer", "CAMERA_POSITION_Z", 16), + newConst("integer", "CAMERA_FOCUS", 17), + newConst("integer", "CAMERA_FOCUS_X", 18), + newConst("integer", "CAMERA_FOCUS_Y", 19), + newConst("integer", "CAMERA_FOCUS_Z", 20), + newConst("integer", "CAMERA_POSITION_LOCKED", 21), + newConst("integer", "CAMERA_FOCUS_LOCKED", 22), + + newConst("integer", "CHANGED_INVENTORY", 0x0001), + newConst("integer", "CHANGED_COLOR", 0x0002), + newConst("integer", "CHANGED_SHAPE", 0x0004), + newConst("integer", "CHANGED_SCALE", 0x0008), + newConst("integer", "CHANGED_TEXTURE", 0x0010), + newConst("integer", "CHANGED_LINK", 0x0020), + newConst("integer", "CHANGED_ALLOWED_DROP", 0x0040), + newConst("integer", "CHANGED_OWNER", 0x0080), + newConst("integer", "CHANGED_REGION", 0x0100), + newConst("integer", "CHANGED_TELEPORT", 0x0200), + newConst("integer", "CHANGED_REGION_START", 0x0400), + newConst("integer", "CHANGED_MEDIA", 0x0800), + + newConst("integer", "CLICK_ACTION_NONE", 0), + newConst("integer", "CLICK_ACTION_TOUCH", 0), + newConst("integer", "CLICK_ACTION_SIT", 1), + newConst("integer", "CLICK_ACTION_BUY", 2), + newConst("integer", "CLICK_ACTION_PAY", 3), + newConst("integer", "CLICK_ACTION_OPEN", 4), + newConst("integer", "CLICK_ACTION_PLAY", 5), + newConst("integer", "CLICK_ACTION_OPEN_MEDIA",6), + + newConst("integer", "CONTROL_FWD", 0x0001), + newConst("integer", "CONTROL_BACK", 0x0002), + newConst("integer", "CONTROL_LEFT", 0x0004), + newConst("integer", "CONTROL_RIGHT", 0x0008), + newConst("integer", "CONTROL_UP", 0x0010), + newConst("integer", "CONTROL_DOWN", 0x0020), + newConst("integer", "CONTROL_ROT_LEFT", 0x0100), + newConst("integer", "CONTROL_ROT_RIGHT", 0x0200), + newConst("integer", "CONTROL_LBUTTON", 0x10000000), + newConst("integer", "CONTROL_ML_LBUTTON", 0x40000000), + + newConst("integer", "DATA_ONLINE", 1), + newConst("integer", "DATA_NAME", 2), + newConst("integer", "DATA_BORN", 3), + newConst("integer", "DATA_RATING", 4), + newConst("integer", "DATA_SIM_POS", 5), + newConst("integer", "DATA_SIM_STATUS", 6), + newConst("integer", "DATA_SIM_RATING", 7), + newConst("integer", "DATA_PAYINFO", 8), + newConst("integer", "DATA_SIM_RELEASE", 128), newConst("integer", "DEBUG_CHANNEL", 2147483647), newConst("integer", "PUBLIC_CHANNEL", 0), + newConst("integer", "HTTP_METHOD", 0), + newConst("integer", "HTTP_MIMETYPE", 1), + newConst("integer", "HTTP_BODY_MAXLENGTH", 2), + newConst("integer", "HTTP_VERIFY_CERT", 3), + newConst("integer", "INVENTORY_ALL", -1), newConst("integer", "INVENTORY_NONE", -1), newConst("integer", "INVENTORY_TEXTURE", 0), @@ -264,6 +376,17 @@ local constants = newConst("integer", "INVENTORY_ANIMATION", 20), newConst("integer", "INVENTORY_GESTURE", 21), + newConst("integer", "LAND_LEVEL", 0), + newConst("integer", "LAND_RAISE", 1), + newConst("integer", "LAND_LOWER", 2), + newConst("integer", "LAND_SMOOTH", 3), + newConst("integer", "LAND_NOISE", 4), + newConst("integer", "LAND_REVERT", 5), + + newConst("integer", "LAND_SMALL_BRUSH", 1), + newConst("integer", "LAND_MEDIUM_BRUSH", 2), + newConst("integer", "LAND_LARGE_BRUSH", 3), + newConst("integer", "ALL_SIDES", -1), newConst("integer", "LINK_SET", -1), newConst("integer", "LINK_ROOT", 1), @@ -271,6 +394,21 @@ local constants = newConst("integer", "LINK_ALL_CHILDREN", -3), newConst("integer", "LINK_THIS", -4), + newConst("integer", "LIST_STAT_RANGE", 0), + newConst("integer", "LIST_STAT_MIN", 1), + newConst("integer", "LIST_STAT_MAX", 2), + newConst("integer", "LIST_STAT_MEAN", 3), + newConst("integer", "LIST_STAT_MEDIAN", 4), + newConst("integer", "LIST_STAT_STD_DEV", 5), + newConst("integer", "LIST_STAT_SUM", 6), + newConst("integer", "LIST_STAT_SUM_SQUARES", 7), + newConst("integer", "LIST_STAT_NUM_COUNT", 8), + newConst("integer", "LIST_STAT_GEOMETRIC_MEAN", 9), + newConst("integer", "LIST_STAT_HARMONIC_MEAN", 100), + + newConst("integer", "PAY_HIDE", -1), + newConst("integer", "PAY_DEFAULT", -2), + newConst("integer", "PERM_ALL", 0x7FFFFFFF), newConst("integer", "PERM_COPY", 0x00008000), newConst("integer", "PERM_MODIFY", 0x00004000), @@ -283,37 +421,108 @@ local constants = newConst("integer", "MASK_NEXT", 4), newConst("integer", "PERMISSION_DEBIT", 0x0002), newConst("integer", "PERMISSION_TAKE_CONTROLS", 0x0004), + newConst("integer", "PERMISSION_REMAP_CONTROLS", 0x0008), newConst("integer", "PERMISSION_TRIGGER_ANIMATION", 0x0010), newConst("integer", "PERMISSION_ATTACH", 0x0020), + newConst("integer", "PERMISSION_RELEASE_OWNERSHIP", 0x0040), newConst("integer", "PERMISSION_CHANGE_LINKS", 0x0080), + newConst("integer", "PERMISSION_CHANGE_JOINTS", 0x0100), + newConst("integer", "PERMISSION_CHANGE_PERMISSIONS", 0x0200), newConst("integer", "PERMISSION_TRACK_CAMERA", 0x0400), - newConst("integer", "PERMISSION_CONTRAL_CAMERA", 0x0800), - - newConst("integer", "AGENT", 0x01), - newConst("integer", "ACTIVE", 0x02), - newConst("integer", "PASSIVE", 0x04), - newConst("integer", "SCRIPTED", 0x08), + newConst("integer", "PERMISSION_CONTROL_CAMERA", 0x0800), + + newConst("integer", "AGENT", 0x0001), + newConst("integer", "AGENT_BY_LEGACY_NAME", 0x0001), + newConst("integer", "ACTIVE", 0x0002), + newConst("integer", "PASSIVE", 0x0004), + newConst("integer", "SCRIPTED", 0x0008), + newConst("integer", "AGENT_BY_USERNAME", 0x0010), + + newConst("integer", "ANIM_ON", 0x0001), + newConst("integer", "LOOP", 0x0002), + newConst("integer", "REVERSE", 0x0004), + newConst("integer", "PING_PONG", 0x0008), + newConst("integer", "SMOOTH", 0x0010), + newConst("integer", "ROTATE", 0x0020), + newConst("integer", "SCALE", 0x0040), newConst("integer", "OBJECT_UNKNOWN_DETAIL", -1), + newConst("integer", "OBJECT_NAME", 1), + newConst("integer", "OBJECT_DESC", 2), + newConst("integer", "OBJECT_POS", 3), + newConst("integer", "OBJECT_ROT", 4), + newConst("integer", "OBJECT_VELOCITY", 5), + newConst("integer", "OBJECT_OWNER", 6), + newConst("integer", "OBJECT_GROUP", 7), + newConst("integer", "OBJECT_CREATOR", 8), + + newConst("integer", "PARCEL_COUNT_TOTAL", 0), + newConst("integer", "PARCEL_COUNT_OWNER", 1), + newConst("integer", "PARCEL_COUNT_GROUP", 2), + newConst("integer", "PARCEL_COUNT_OTHER", 3), + newConst("integer", "PARCEL_COUNT_SELECTED", 4), + newConst("integer", "PARCEL_COUNT_TEMP", 5), + + newConst("integer", "PARCEL_DETAILS_NAME", 0), + newConst("integer", "PARCEL_DETAILS_DESC", 1), + newConst("integer", "PARCEL_DETAILS_OWNER", 2), + newConst("integer", "PARCEL_DETAILS_GROUP", 3), + newConst("integer", "PARCEL_DETAILS_AREA", 4), + newConst("integer", "PARCEL_DETAILS_ID", 5), + + newConst("integer", "PARCEL_FLAG_ALLOW_FLY", 0x0001), + newConst("integer", "PARCEL_FLAG_ALLOW_SCRIPTS", 0x0002), + newConst("integer", "PARCEL_FLAG_ALLOW_LANDMARK", 0x0008), + newConst("integer", "PARCEL_FLAG_ALLOW_TERRAFORM", 0x0010), + newConst("integer", "PARCEL_FLAG_ALLOW_DAMAGE", 0x0020), + newConst("integer", "PARCEL_FLAG_ALLOW_CREATE_OBJECTS", 0x0040), + newConst("integer", "PARCEL_FLAG_USE_ACCESS_GROUP", 0x0100), + newConst("integer", "PARCEL_FLAG_USE_ACCESS_LIST", 0x0200), + newConst("integer", "PARCEL_FLAG_USE_BAN_LIST", 0x0400), + newConst("integer", "PARCEL_FLAG_USE_LAND_PASS_LIST", 0x0800), + newConst("integer", "PARCEL_FLAG_LOCAL_SOUND_ONLY", 0x8000), + newConst("integer", "PARCEL_FLAG_RESTRICT_PUSHOBJECT", 0x00200000), + newConst("integer", "PARCEL_FLAG_ALLOW_GROUP_SCRIPTS", 0x02000000), + newConst("integer", "PARCEL_FLAG_ALLOW_CREATE_GROUP_OBJECTS", 0x04000000), + newConst("integer", "PARCEL_FLAG_ALLOW_ALL_OBJECT_ENTRY", 0x08000000), + newConst("integer", "PARCEL_FLAG_ALLOW_GROUP_OBJECT_ENTRY", 0x10000000), + + newConst("integer", "PARCEL_MEDIA_COMMAND_STOP", 0), + newConst("integer", "PARCEL_MEDIA_COMMAND_PAUSE", 1), + newConst("integer", "PARCEL_MEDIA_COMMAND_PLAY", 2), + newConst("integer", "PARCEL_MEDIA_COMMAND_LOOP", 3), + newConst("integer", "PARCEL_MEDIA_COMMAND_TEXTURE", 4), + newConst("integer", "PARCEL_MEDIA_COMMAND_URL", 5), + newConst("integer", "PARCEL_MEDIA_COMMAND_TIME", 6), + newConst("integer", "PARCEL_MEDIA_COMMAND_AGENT", 7), + newConst("integer", "PARCEL_MEDIA_COMMAND_UNLOAD", 8), + newConst("integer", "PARCEL_MEDIA_COMMAND_AUTO_ALIGN",9), + newConst("integer", "PARCEL_MEDIA_COMMAND_TYPE", 10), + newConst("integer", "PARCEL_MEDIA_COMMAND_SIZE", 11), + newConst("integer", "PARCEL_MEDIA_COMMAND_DESC", 12), - newConst("integer", "PRIM_BUMP_SHINY", 19), - newConst("integer", "PRIM_COLOR", 18), - newConst("integer", "PRIM_FLEXIBLE", 21), - newConst("integer", "PRIM_FULLBRIGHT", 20), - newConst("integer", "PRIM_GLOW", 25), + newConst("integer", "PRIM_TYPE_OLD", 1), newConst("integer", "PRIM_MATERIAL", 2), - newConst("integer", "PRIM_PHANTOM", 5), newConst("integer", "PRIM_PHYSICS", 3), - newConst("integer", "PRIM_POINT_LIGHT", 23), + newConst("integer", "PRIM_TEMP_ON_REZ", 4), + newConst("integer", "PRIM_PHANTOM", 5), newConst("integer", "PRIM_POSITION", 6), - newConst("integer", "PRIM_ROTATION", 8), newConst("integer", "PRIM_SIZE", 7), - newConst("integer", "PRIM_TEMP_ON_REZ", 4), + newConst("integer", "PRIM_ROTATION", 8), newConst("integer", "PRIM_TYPE", 9), - newConst("integer", "PRIM_TYPE_OLD", 1), - newConst("integer", "PRIM_TEXGEN", 22), newConst("integer", "PRIM_TEXTURE", 17), + newConst("integer", "PRIM_COLOR", 18), + newConst("integer", "PRIM_BUMP_SHINY", 19), + newConst("integer", "PRIM_FULLBRIGHT", 20), + newConst("integer", "PRIM_FLEXIBLE", 21), + newConst("integer", "PRIM_TEXGEN", 22), + newConst("integer", "PRIM_POINT_LIGHT", 23), + newConst("integer", "PRIM_CAST_SHADOWS", 24), + newConst("integer", "PRIM_GLOW", 25), newConst("integer", "PRIM_TEXT", 26), + newConst("integer", "PRIM_NAME", 27), + newConst("integer", "PRIM_DESC", 28), + newConst("integer", "PRIM_ROT_LOCAL", 29), newConst("integer", "PRIM_BUMP_NONE", 0), newConst("integer", "PRIM_BUMP_BRIGHT", 1), @@ -348,6 +557,30 @@ local constants = newConst("integer", "PRIM_MATERIAL_RUBBER", 6), newConst("integer", "PRIM_MATERIAL_LIGHT", 7), + newConst("integer", "PRIM_MEDIA_ALT_IMAGE_ENABLE", 0), + newConst("integer", "PRIM_MEDIA_CONTROLS", 1), + newConst("integer", "PRIM_MEDIA_CURRENT_URL", 2), + newConst("integer", "PRIM_MEDIA_HOME_URL", 3), + newConst("integer", "PRIM_MEDIA_AUTO_LOOP", 4), + newConst("integer", "PRIM_MEDIA_AUTO_PLAY", 5), + newConst("integer", "PRIM_MEDIA_AUTO_SCALE", 6), + newConst("integer", "PRIM_MEDIA_AUTO_ZOOM", 7), + newConst("integer", "PRIM_MEDIA_FIRST_CLICK_INTERACT",8), + newConst("integer", "PRIM_MEDIA_WIDTH_PIXELS", 9), + newConst("integer", "PRIM_MEDIA_HEIGHT_PIXELS", 10), + newConst("integer", "PRIM_MEDIA_WHITELIST_ENABLE", 11), + newConst("integer", "PRIM_MEDIA_WHITELIST", 12), + newConst("integer", "PRIM_MEDIA_PERMS_INTERACT", 13), + newConst("integer", "PRIM_MEDIA_PERMS_CONTROL", 14), + + newConst("integer", "PRIM_MEDIA_CONTROLS_STANDARD", 0), + newConst("integer", "PRIM_MEDIA_CONTROLS_MINI", 1), + + newConst("integer", "PRIM_MEDIA_PERM_NONE", 0), + newConst("integer", "PRIM_MEDIA_PERM_OWNER", 1), + newConst("integer", "PRIM_MEDIA_PERM_GROUP", 2), + newConst("integer", "PRIM_MEDIA_PERM_ANYONE", 4), + newConst("integer", "PRIM_SCULPT_TYPE_SPHERE", 1), newConst("integer", "PRIM_SCULPT_TYPE_TORUS", 2), newConst("integer", "PRIM_SCULPT_TYPE_PLANE", 3), @@ -360,6 +593,9 @@ local constants = newConst("integer", "PRIM_SHINY_MEDIUM", 2), newConst("integer", "PRIM_SHINY_HIGH", 3), + newConst("integer", "PRIM_TEXGEN_DEFAULT", 0), + newConst("integer", "PRIM_TEXGEN_PLANAR", 1), + newConst("integer", "PRIM_TYPE_BOX", 0), newConst("integer", "PRIM_TYPE_CYLINDER", 1), newConst("integer", "PRIM_TYPE_PRISM", 2), @@ -369,15 +605,14 @@ local constants = newConst("integer", "PRIM_TYPE_RING", 6), newConst("integer", "PRIM_TYPE_SCULPT", 7), - newConst("integer", "PSYS_PART_FLAGS", 0), - newConst("integer", "PSYS_PART_START_COLOR", 1), - newConst("integer", "PSYS_PART_START_ALPHA", 2), - newConst("integer", "PSYS_PART_END_COLOR", 3), - newConst("integer", "PSYS_PART_END_ALPHA", 4), - newConst("integer", "PSYS_PART_START_SCALE", 5), - newConst("integer", "PSYS_PART_END_SCALE", 6), - newConst("integer", "PSYS_PART_MAX_AGE", 7), - + newConst("integer", "PSYS_PART_FLAGS", 0), + newConst("integer", "PSYS_PART_START_COLOR", 1), + newConst("integer", "PSYS_PART_START_ALPHA", 2), + newConst("integer", "PSYS_PART_END_COLOR", 3), + newConst("integer", "PSYS_PART_END_ALPHA", 4), + newConst("integer", "PSYS_PART_START_SCALE", 5), + newConst("integer", "PSYS_PART_END_SCALE", 6), + newConst("integer", "PSYS_PART_MAX_AGE", 7), newConst("integer", "PSYS_SRC_ACCEL", 8), newConst("integer", "PSYS_SRC_PATTERN", 9), newConst("integer", "PSYS_SRC_INNERANGLE", 10), @@ -394,21 +629,62 @@ local constants = newConst("integer", "PSYS_SRC_ANGLE_BEGIN", 22), newConst("integer", "PSYS_SRC_ANGLE_END", 23), - newConst("integer", "PSYS_PART_INTERP_COLOR_MASK", 1), - newConst("integer", "PSYS_PART_INTERP_SCALE_MASK", 2), - newConst("integer", "PSYS_PART_BOUNCE_MASK", 4), - newConst("integer", "PSYS_PART_WIND_MASK", 8), - newConst("integer", "PSYS_PART_FOLLOW_SRC_MASK", 16), - newConst("integer", "PSYS_PART_FOLLOW_VELOCITY_MASK", 32), - newConst("integer", "PSYS_PART_TARGET_POS_MASK", 64), - newConst("integer", "PSYS_PART_TARGET_LINEAR_MASK", 128), - newConst("integer", "PSYS_PART_EMISSIVE_MASK", 256), - - newConst("integer", "PSYS_SRC_PATTERN_DROP", 1), - newConst("integer", "PSYS_SRC_PATTERN_EXPLODE", 2), - newConst("integer", "PSYS_SRC_PATTERN_ANGLE", 4), - newConst("integer", "PSYS_SRC_PATTERN_ANGLE_CONE", 8), - newConst("integer", "PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY", 16), + newConst("integer", "PSYS_PART_INTERP_COLOR_MASK", 0x0001), + newConst("integer", "PSYS_PART_INTERP_SCALE_MASK", 0x0002), + newConst("integer", "PSYS_PART_BOUNCE_MASK", 0x0004), + newConst("integer", "PSYS_PART_WIND_MASK", 0x0008), + newConst("integer", "PSYS_PART_FOLLOW_SRC_MASK", 0x0010), + newConst("integer", "PSYS_PART_FOLLOW_VELOCITY_MASK", 0x0020), + newConst("integer", "PSYS_PART_TARGET_POS_MASK", 0x0040), + newConst("integer", "PSYS_PART_TARGET_LINEAR_MASK", 0x0080), + newConst("integer", "PSYS_PART_EMISSIVE_MASK", 0x0100), + + newConst("integer", "PSYS_SRC_PATTERN_DROP", 0x0001), + newConst("integer", "PSYS_SRC_PATTERN_EXPLODE", 0x0002), + newConst("integer", "PSYS_SRC_PATTERN_ANGLE", 0x0004), + newConst("integer", "PSYS_SRC_PATTERN_ANGLE_CONE", 0x0008), + newConst("integer", "PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY", 0x0010), + + newConst("integer", "REGION_FLAG_ALLOW_DAMAGE", 0x0001), + newConst("integer", "REGION_FLAG_FIXED_SUN", 0x0010), + newConst("integer", "REGION_FLAG_BLOCK_TERRAFORM", 0x0040), + newConst("integer", "REGION_FLAG_SANDBOX", 0x0100), + newConst("integer", "REGION_FLAG_DISABLE_COLLISIONS", 0x1000), + newConst("integer", "REGION_FLAG_DISABLE_PHYSICS", 0x4000), + newConst("integer", "REGION_FLAG_BLOCK_FLY", 0x00080000), + newConst("integer", "REGION_FLAG_ALLOW_DIRECT_TELEPORT", 0x00100000), + newConst("integer", "REGION_FLAG_RESTRICT_PUSHOBJECT", 0x00400000), + + newConst("integer", "REMOTE_DATA_CHANNEL", 1), + newConst("integer", "REMOTE_DATA_REQUEST", 2), + newConst("integer", "REMOTE_DATA_REPLY", 3), + + newConst("integer", "STRING_TRIM_HEAD", 1), + newConst("integer", "STRING_TRIM_TAIL", 2), + newConst("integer", "STRING_TRIM", 3), + + newConst("integer", "STATUS_PHYSICS", 0x0001), + newConst("integer", "STATUS_ROTATE_X", 0x0002), + newConst("integer", "STATUS_ROTATE_Y", 0x0004), + newConst("integer", "STATUS_ROTATE_Z", 0x0008), + newConst("integer", "STATUS_PHANTOM", 0x0010), + newConst("integer", "STATUS_SANDBOX", 0x0020), + newConst("integer", "STATUS_BLOCK_GRAB", 0x0040), + newConst("integer", "STATUS_DIE_AT_EDGE", 0x0080), + newConst("integer", "STATUS_RETURN_AT_EDGE", 0x0100), + newConst("integer", "STATUS_CAST_SHADOWS", 0x0200), + + newConst("integer", "TOUCH_INVALID_FACE", 0x7FFFFFFF), + newConst("vector", "TOUCH_INVALID_TEXCOORD", {x=-1.0, y=-1.0, z=0.0}), + newConst("vector", "TOUCH_INVALID_VECTOR", {x=0.0, y=0.0, z=0.0}), + + newConst("integer", "TYPE_INTEGER", 1), + newConst("integer", "TYPE_FLOAT", 2), + newConst("integer", "TYPE_STRING", 3), + newConst("integer", "TYPE_KEY", 4), + newConst("integer", "TYPE_VECTOR", 5), + newConst("integer", "TYPE_ROTATION", 6), + newConst("integer", "TYPE_INVALID", 0), newConst("integer", "VEHICLE_FLAG_NO_DEFLECTION_UP", 1), newConst("integer", "VEHICLE_FLAG_LIMIT_ROLL_ONLY", 2), @@ -460,25 +736,47 @@ local constants = newConst("integer", "VEHICLE_RANGE_BLOCK", 45), newConst("integer", "VEHICLE_ROLL_FRAME", 46), - newConst("integer", "STRING_TRIM", 3), - newConst("integer", "STRING_TRIM_HEAD", 1), - newConst("integer", "STRING_TRIM_TAIL", 2), + newConst("integer", "WL_WATER_COLOR", 0), + newConst("integer", "WL_WATER_FOG_DENSITY_EXPONENT", 1), + newConst("integer", "WL_UNDERWATER_FOG_MODIFIER", 2), + newConst("integer", "WL_REFLECTION_WAVELET_SCALE", 3), + newConst("integer", "WL_FRESNEL_SCALE", 4), + newConst("integer", "WL_FRESNEL_OFFSET", 5), + newConst("integer", "WL_REFRACT_SCALE_ABOVE", 6), + newConst("integer", "WL_REFRACT_SCALE_BELOW", 7), + newConst("integer", "WL_BLUR_MULTIPLIER", 8), + newConst("integer", "WL_BIG_WAVE_DIRECTION", 9), + newConst("integer", "WL_LITTLE_WAVE_DIRECTION", 10), + newConst("integer", "WL_NORMAL_MAP_TEXTURE", 11), + newConst("integer", "WL_HORIZON", 12), + newConst("integer", "WL_HAZE_HORIZON", 13), + newConst("integer", "WL_BLUE_DENSITY", 14), + newConst("integer", "WL_HAZE_DENSITY", 15), + newConst("integer", "WL_DENSITY_MULTIPLIER", 16), + newConst("integer", "WL_DISTANCE_MULTIPLIER", 17), + newConst("integer", "WL_MAX_ALTITUDE", 18), + newConst("integer", "WL_SUN_MOON_COLOR", 19), + newConst("integer", "WL_AMBIENT", 20), + newConst("integer", "WL_EAST_ANGLE", 21), + newConst("integer", "WL_SUN_GLOW_FOCUS", 22), + newConst("integer", "WL_SUN_GLOW_SIZE", 23), + newConst("integer", "WL_SCENE_GAMMA", 24), + newConst("integer", "WL_STAR_BRIGHTNESS", 25), + newConst("integer", "WL_CLOUD_COLOR", 26), + newConst("integer", "WL_CLOUD_XY_DENSITY", 27), + newConst("integer", "WL_CLOUD_COVERAGE", 28), + newConst("integer", "WL_CLOUD_SCALE", 29), + newConst("integer", "WL_CLOUD_DETAIL_XY_DENSITY", 30), + newConst("integer", "WL_CLOUD_SCROLL_X", 31), + newConst("integer", "WL_CLOUD_SCROLL_Y", 32), + newConst("integer", "WL_CLOUD_SCROLL_Y_LOCK", 33), + newConst("integer", "WL_CLOUD_SCROLL_X_LOCK", 34), + newConst("integer", "WL_DRAW_CLASSIC_CLOUDS", 35), + newConst("integer", "WL_SUN_MOON_POSITION", 36), newConst("integer", "TRUE", 1), newConst("integer", "FALSE", 0), - newConst("integer", "TOUCH_INVALID_FACE", 0x7FFFFFFF), - newConst("vector", "TOUCH_INVALID_TEXCOORD", {x=-1.0, y=-1.0, z=0.0}), - newConst("vector", "TOUCH_INVALID_VECTOR", {x=0.0, y=0.0, z=0.0}), - - newConst("integer", "TYPE_INTEGER", 1), - newConst("integer", "TYPE_FLOAT", 2), - newConst("integer", "TYPE_STRING", 3), - newConst("integer", "TYPE_KEY", 4), - newConst("integer", "TYPE_VECTOR", 5), - newConst("integer", "TYPE_ROTATION", 6), - newConst("integer", "TYPE_INVALID", 0), - newConst("string", "NULL_KEY", "00000000-0000-0000-0000-000000000000"), -- newConst("string", "EOF", "\\n\\n\\n"), -- Corner case, dealt with later. newConst("string", "EOF", "EndOfFuckingAround"), -- Corner case, dealt with later. -- cgit v1.1