lllslconstants.h

Go to the documentation of this file.
00001 
00033 #ifndef LL_LLLSLCONSTANTS_H
00034 #define LL_LLLSLCONSTANTS_H
00035 
00036 // LSL: Return flags for llGetAgentInfo
00037 const U32 AGENT_FLYING          = 0x0001;
00038 const U32 AGENT_ATTACHMENTS     = 0x0002;
00039 const U32 AGENT_SCRIPTED        = 0x0004;
00040 const U32 AGENT_MOUSELOOK       = 0x0008;
00041 const U32 AGENT_SITTING         = 0x0010;
00042 const U32 AGENT_ON_OBJECT       = 0x0020;
00043 const U32 AGENT_AWAY            = 0x0040;
00044 const U32 AGENT_WALKING         = 0x0080;
00045 const U32 AGENT_IN_AIR          = 0x0100;
00046 const U32 AGENT_TYPING          = 0x0200;
00047 const U32 AGENT_CROUCHING       = 0x0400;
00048 const U32 AGENT_BUSY            = 0x0800;
00049 const U32 AGENT_ALWAYS_RUN      = 0x1000;
00050 
00051 const S32 LSL_REMOTE_DATA_CHANNEL               = 1;
00052 const S32 LSL_REMOTE_DATA_REQUEST               = 2;
00053 const S32 LSL_REMOTE_DATA_REPLY                 = 3;
00054 
00055 // Constants used in extended LSL primitive setter and getters
00056 const S32 LSL_PRIM_TYPE_LEGACY  = 1; // No longer supported.
00057 const S32 LSL_PRIM_MATERIAL             = 2;
00058 const S32 LSL_PRIM_PHYSICS              = 3;
00059 const S32 LSL_PRIM_TEMP_ON_REZ  = 4;
00060 const S32 LSL_PRIM_PHANTOM              = 5;
00061 const S32 LSL_PRIM_POSITION             = 6;
00062 const S32 LSL_PRIM_SIZE                 = 7;
00063 const S32 LSL_PRIM_ROTATION             = 8;
00064 const S32 LSL_PRIM_TYPE                 = 9; // Replacement for LSL_PRIM_TYPE_LEGACY
00065 const S32 LSL_PRIM_TEXTURE              = 17;
00066 const S32 LSL_PRIM_COLOR                = 18;
00067 const S32 LSL_PRIM_BUMP_SHINY   = 19;
00068 const S32 LSL_PRIM_FULLBRIGHT   = 20;
00069 const S32 LSL_PRIM_FLEXIBLE             = 21;
00070 const S32 LSL_PRIM_TEXGEN               = 22;
00071 const S32 LSL_PRIM_POINT_LIGHT  = 23;
00072 const S32 LSL_PRIM_CAST_SHADOWS = 24;
00073 
00074 const S32 LSL_PRIM_TYPE_BOX             = 0;
00075 const S32 LSL_PRIM_TYPE_CYLINDER= 1;
00076 const S32 LSL_PRIM_TYPE_PRISM   = 2;
00077 const S32 LSL_PRIM_TYPE_SPHERE  = 3;
00078 const S32 LSL_PRIM_TYPE_TORUS   = 4;
00079 const S32 LSL_PRIM_TYPE_TUBE    = 5;
00080 const S32 LSL_PRIM_TYPE_RING    = 6;
00081 const S32 LSL_PRIM_TYPE_SCULPT  = 7;
00082 
00083 const S32 LSL_PRIM_HOLE_DEFAULT = 0x00;
00084 const S32 LSL_PRIM_HOLE_CIRCLE  = 0x10;
00085 const S32 LSL_PRIM_HOLE_SQUARE  = 0x20;
00086 const S32 LSL_PRIM_HOLE_TRIANGLE= 0x30;
00087 
00088 const S32 LSL_PRIM_MATERIAL_STONE       = 0;
00089 const S32 LSL_PRIM_MATERIAL_METAL       = 1;
00090 const S32 LSL_PRIM_MATERIAL_GLASS       = 2;
00091 const S32 LSL_PRIM_MATERIAL_WOOD        = 3;
00092 const S32 LSL_PRIM_MATERIAL_FLESH       = 4;
00093 const S32 LSL_PRIM_MATERIAL_PLASTIC     = 5;
00094 const S32 LSL_PRIM_MATERIAL_RUBBER      = 6;
00095 const S32 LSL_PRIM_MATERIAL_LIGHT       = 7;
00096 
00097 const S32 LSL_PRIM_SHINY_NONE           = 0;
00098 const S32 LSL_PRIM_SHINY_LOW            = 1;
00099 const S32 LSL_PRIM_SHINY_MEDIUM         = 2;
00100 const S32 LSL_PRIM_SHINY_HIGH           = 3;
00101 
00102 const S32 LSL_PRIM_TEXGEN_DEFAULT       = 0;
00103 const S32 LSL_PRIM_TEXGEN_PLANAR        = 1;
00104 
00105 const S32 LSL_PRIM_BUMP_NONE            = 0;
00106 const S32 LSL_PRIM_BUMP_BRIGHT          = 1;
00107 const S32 LSL_PRIM_BUMP_DARK            = 2;
00108 const S32 LSL_PRIM_BUMP_WOOD            = 3;
00109 const S32 LSL_PRIM_BUMP_BARK            = 4;
00110 const S32 LSL_PRIM_BUMP_BRICKS          = 5;
00111 const S32 LSL_PRIM_BUMP_CHECKER         = 6;
00112 const S32 LSL_PRIM_BUMP_CONCRETE        = 7;
00113 const S32 LSL_PRIM_BUMP_TILE            = 8;
00114 const S32 LSL_PRIM_BUMP_STONE           = 9;
00115 const S32 LSL_PRIM_BUMP_DISKS           = 10;
00116 const S32 LSL_PRIM_BUMP_GRAVEL          = 11;
00117 const S32 LSL_PRIM_BUMP_BLOBS           = 12;
00118 const S32 LSL_PRIM_BUMP_SIDING          = 13;
00119 const S32 LSL_PRIM_BUMP_LARGETILE       = 14;
00120 const S32 LSL_PRIM_BUMP_STUCCO          = 15;
00121 const S32 LSL_PRIM_BUMP_SUCTION         = 16;
00122 const S32 LSL_PRIM_BUMP_WEAVE           = 17;
00123 
00124 const S32 LSL_PRIM_SCULPT_TYPE_SPHERE   = 1;
00125 const S32 LSL_PRIM_SCULPT_TYPE_TORUS    = 2;
00126 const S32 LSL_PRIM_SCULPT_TYPE_PLANE    = 3;
00127 const S32 LSL_PRIM_SCULPT_TYPE_CYLINDER = 4;
00128 
00129 const S32 LSL_ALL_SIDES                         = -1;
00130 const S32 LSL_LINK_ROOT                         = 1;
00131 const S32 LSL_LINK_FIRST_CHILD          = 2;
00132 const S32 LSL_LINK_SET                          = -1;
00133 const S32 LSL_LINK_ALL_OTHERS           = -2;
00134 const S32 LSL_LINK_ALL_CHILDREN         = -3;
00135 const S32 LSL_LINK_THIS                         = -4;
00136 
00137 // LSL constants for llSetForSell
00138 const S32 SELL_NOT                      = 0;
00139 const S32 SELL_ORIGINAL         = 1;
00140 const S32 SELL_COPY                     = 2;
00141 const S32 SELL_CONTENTS         = 3;
00142 
00143 // LSL constants for llSetPayPrice
00144 const S32 PAY_PRICE_HIDE = -1;
00145 const S32 PAY_PRICE_DEFAULT = -2;
00146 const S32 MAX_PAY_BUTTONS = 4;
00147 const S32 PAY_BUTTON_DEFAULT_0 = 1;
00148 const S32 PAY_BUTTON_DEFAULT_1 = 5;
00149 const S32 PAY_BUTTON_DEFAULT_2 = 10;
00150 const S32 PAY_BUTTON_DEFAULT_3 = 20;
00151 
00152 // lsl email registration.
00153 const S32 EMAIL_REG_SUBSCRIBE_OBJECT    = 0x01;
00154 const S32 EMAIL_REG_UNSUBSCRIBE_OBJECT  = 0x02;
00155 const S32 EMAIL_REG_UNSUBSCRIBE_SIM             = 0x04;
00156 
00157 const S32 LIST_STAT_RANGE = 0;
00158 const S32 LIST_STAT_MIN         = 1;
00159 const S32 LIST_STAT_MAX         = 2;
00160 const S32 LIST_STAT_MEAN        = 3;
00161 const S32 LIST_STAT_MEDIAN      = 4;
00162 const S32 LIST_STAT_STD_DEV     = 5;
00163 const S32 LIST_STAT_SUM = 6;
00164 const S32 LIST_STAT_SUM_SQUARES = 7;
00165 const S32 LIST_STAT_NUM_COUNT = 8;
00166 const S32 LIST_STAT_GEO_MEAN = 9;
00167 
00168 const S32 STRING_TRIM_HEAD = 0x01;
00169 const S32 STRING_TRIM_TAIL = 0x02;
00170 const S32 STRING_TRIM = STRING_TRIM_HEAD | STRING_TRIM_TAIL;
00171 
00172 // llGetObjectDetails
00173 const S32 OBJECT_UNKNOWN_DETAIL = -1;
00174 const S32 OBJECT_NAME = 1;
00175 const S32 OBJECT_DESC = 2;
00176 const S32 OBJECT_POS = 3;
00177 const S32 OBJECT_ROT = 4;
00178 const S32 OBJECT_VELOCITY = 5;
00179 const S32 OBJECT_OWNER = 6;
00180 const S32 OBJECT_GROUP = 7;
00181 const S32 OBJECT_CREATOR = 8;
00182 
00183 #endif

Generated on Thu Jul 1 06:08:49 2010 for Second Life Viewer by  doxygen 1.4.7