diff options
author | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
commit | 38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch) | |
tree | adca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llcommon/lllslconstants.h | |
parent | README.txt (diff) | |
download | meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2 meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz |
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/llcommon/lllslconstants.h')
-rw-r--r-- | linden/indra/llcommon/lllslconstants.h | 158 |
1 files changed, 158 insertions, 0 deletions
diff --git a/linden/indra/llcommon/lllslconstants.h b/linden/indra/llcommon/lllslconstants.h new file mode 100644 index 0000000..52d2858 --- /dev/null +++ b/linden/indra/llcommon/lllslconstants.h | |||
@@ -0,0 +1,158 @@ | |||
1 | /** | ||
2 | * @file lllslconstants.h | ||
3 | * @author James Cook | ||
4 | * @brief Constants used in lsl. | ||
5 | * | ||
6 | * Copyright (c) 2006-2007, Linden Research, Inc. | ||
7 | * | ||
8 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
9 | * to you under the terms of the GNU General Public License, version 2.0 | ||
10 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
11 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
12 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
13 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
14 | * | ||
15 | * There are special exceptions to the terms and conditions of the GPL as | ||
16 | * it is applied to this Source Code. View the full text of the exception | ||
17 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
18 | * online at http://secondlife.com/developers/opensource/flossexception | ||
19 | * | ||
20 | * By copying, modifying or distributing this software, you acknowledge | ||
21 | * that you have read and understood your obligations described above, | ||
22 | * and agree to abide by those obligations. | ||
23 | * | ||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
26 | * COMPLETENESS OR PERFORMANCE. | ||
27 | */ | ||
28 | |||
29 | #ifndef LL_LLLSLCONSTANTS_H | ||
30 | #define LL_LLLSLCONSTANTS_H | ||
31 | |||
32 | // LSL: Return flags for llGetAgentInfo | ||
33 | const U32 AGENT_FLYING = 0x0001; | ||
34 | const U32 AGENT_ATTACHMENTS = 0x0002; | ||
35 | const U32 AGENT_SCRIPTED = 0x0004; | ||
36 | const U32 AGENT_MOUSELOOK = 0x0008; | ||
37 | const U32 AGENT_SITTING = 0x0010; | ||
38 | const U32 AGENT_ON_OBJECT = 0x0020; | ||
39 | const U32 AGENT_AWAY = 0x0040; | ||
40 | const U32 AGENT_WALKING = 0x0080; | ||
41 | const U32 AGENT_IN_AIR = 0x0100; | ||
42 | const U32 AGENT_TYPING = 0x0200; | ||
43 | const U32 AGENT_CROUCHING = 0x0400; | ||
44 | const U32 AGENT_BUSY = 0x0800; | ||
45 | const U32 AGENT_ALWAYS_RUN = 0x1000; | ||
46 | |||
47 | const S32 LSL_REMOTE_DATA_CHANNEL = 1; | ||
48 | const S32 LSL_REMOTE_DATA_REQUEST = 2; | ||
49 | const S32 LSL_REMOTE_DATA_REPLY = 3; | ||
50 | |||
51 | // Constants used in extended LSL primitive setter and getters | ||
52 | const S32 LSL_PRIM_TYPE_LEGACY = 1; // No longer supported. | ||
53 | const S32 LSL_PRIM_MATERIAL = 2; | ||
54 | const S32 LSL_PRIM_PHYSICS = 3; | ||
55 | const S32 LSL_PRIM_TEMP_ON_REZ = 4; | ||
56 | const S32 LSL_PRIM_PHANTOM = 5; | ||
57 | const S32 LSL_PRIM_POSITION = 6; | ||
58 | const S32 LSL_PRIM_SIZE = 7; | ||
59 | const S32 LSL_PRIM_ROTATION = 8; | ||
60 | const S32 LSL_PRIM_TYPE = 9; // Replacement for LSL_PRIM_TYPE_LEGACY | ||
61 | const S32 LSL_PRIM_TEXTURE = 17; | ||
62 | const S32 LSL_PRIM_COLOR = 18; | ||
63 | const S32 LSL_PRIM_BUMP_SHINY = 19; | ||
64 | const S32 LSL_PRIM_FULLBRIGHT = 20; | ||
65 | const S32 LSL_PRIM_FLEXIBLE = 21; | ||
66 | const S32 LSL_PRIM_TEXGEN = 22; | ||
67 | const S32 LSL_PRIM_POINT_LIGHT = 23; | ||
68 | const S32 LSL_PRIM_CAST_SHADOWS = 24; | ||
69 | |||
70 | const S32 LSL_PRIM_TYPE_BOX = 0; | ||
71 | const S32 LSL_PRIM_TYPE_CYLINDER= 1; | ||
72 | const S32 LSL_PRIM_TYPE_PRISM = 2; | ||
73 | const S32 LSL_PRIM_TYPE_SPHERE = 3; | ||
74 | const S32 LSL_PRIM_TYPE_TORUS = 4; | ||
75 | const S32 LSL_PRIM_TYPE_TUBE = 5; | ||
76 | const S32 LSL_PRIM_TYPE_RING = 6; | ||
77 | |||
78 | const S32 LSL_PRIM_HOLE_DEFAULT = 0x00; | ||
79 | const S32 LSL_PRIM_HOLE_CIRCLE = 0x10; | ||
80 | const S32 LSL_PRIM_HOLE_SQUARE = 0x20; | ||
81 | const S32 LSL_PRIM_HOLE_TRIANGLE= 0x30; | ||
82 | |||
83 | const S32 LSL_PRIM_MATERIAL_STONE = 0; | ||
84 | const S32 LSL_PRIM_MATERIAL_METAL = 1; | ||
85 | const S32 LSL_PRIM_MATERIAL_GLASS = 2; | ||
86 | const S32 LSL_PRIM_MATERIAL_WOOD = 3; | ||
87 | const S32 LSL_PRIM_MATERIAL_FLESH = 4; | ||
88 | const S32 LSL_PRIM_MATERIAL_PLASTIC = 5; | ||
89 | const S32 LSL_PRIM_MATERIAL_RUBBER = 6; | ||
90 | const S32 LSL_PRIM_MATERIAL_LIGHT = 7; | ||
91 | |||
92 | const S32 LSL_PRIM_SHINY_NONE = 0; | ||
93 | const S32 LSL_PRIM_SHINY_LOW = 1; | ||
94 | const S32 LSL_PRIM_SHINY_MEDIUM = 2; | ||
95 | const S32 LSL_PRIM_SHINY_HIGH = 3; | ||
96 | |||
97 | const S32 LSL_PRIM_TEXGEN_DEFAULT = 0; | ||
98 | const S32 LSL_PRIM_TEXGEN_PLANAR = 1; | ||
99 | |||
100 | const S32 LSL_PRIM_BUMP_NONE = 0; | ||
101 | const S32 LSL_PRIM_BUMP_BRIGHT = 1; | ||
102 | const S32 LSL_PRIM_BUMP_DARK = 2; | ||
103 | const S32 LSL_PRIM_BUMP_WOOD = 3; | ||
104 | const S32 LSL_PRIM_BUMP_BARK = 4; | ||
105 | const S32 LSL_PRIM_BUMP_BRICKS = 5; | ||
106 | const S32 LSL_PRIM_BUMP_CHECKER = 6; | ||
107 | const S32 LSL_PRIM_BUMP_CONCRETE = 7; | ||
108 | const S32 LSL_PRIM_BUMP_TILE = 8; | ||
109 | const S32 LSL_PRIM_BUMP_STONE = 9; | ||
110 | const S32 LSL_PRIM_BUMP_DISKS = 10; | ||
111 | const S32 LSL_PRIM_BUMP_GRAVEL = 11; | ||
112 | const S32 LSL_PRIM_BUMP_BLOBS = 12; | ||
113 | const S32 LSL_PRIM_BUMP_SIDING = 13; | ||
114 | const S32 LSL_PRIM_BUMP_LARGETILE = 14; | ||
115 | const S32 LSL_PRIM_BUMP_STUCCO = 15; | ||
116 | const S32 LSL_PRIM_BUMP_SUCTION = 16; | ||
117 | const S32 LSL_PRIM_BUMP_WEAVE = 17; | ||
118 | |||
119 | const S32 LSL_ALL_SIDES = -1; | ||
120 | const S32 LSL_LINK_ROOT = 1; | ||
121 | const S32 LSL_LINK_FIRST_CHILD = 2; | ||
122 | const S32 LSL_LINK_SET = -1; | ||
123 | const S32 LSL_LINK_ALL_OTHERS = -2; | ||
124 | const S32 LSL_LINK_ALL_CHILDREN = -3; | ||
125 | const S32 LSL_LINK_THIS = -4; | ||
126 | |||
127 | // LSL constants for llSetForSell | ||
128 | const S32 SELL_NOT = 0; | ||
129 | const S32 SELL_ORIGINAL = 1; | ||
130 | const S32 SELL_COPY = 2; | ||
131 | const S32 SELL_CONTENTS = 3; | ||
132 | |||
133 | // LSL constants for llSetPayPrice | ||
134 | const S32 PAY_PRICE_HIDE = -1; | ||
135 | const S32 PAY_PRICE_DEFAULT = -2; | ||
136 | const S32 MAX_PAY_BUTTONS = 4; | ||
137 | const S32 PAY_BUTTON_DEFAULT_0 = 1; | ||
138 | const S32 PAY_BUTTON_DEFAULT_1 = 5; | ||
139 | const S32 PAY_BUTTON_DEFAULT_2 = 10; | ||
140 | const S32 PAY_BUTTON_DEFAULT_3 = 20; | ||
141 | |||
142 | // lsl email registration. | ||
143 | const S32 EMAIL_REG_SUBSCRIBE_OBJECT = 0x01; | ||
144 | const S32 EMAIL_REG_UNSUBSCRIBE_OBJECT = 0x02; | ||
145 | const S32 EMAIL_REG_UNSUBSCRIBE_SIM = 0x04; | ||
146 | |||
147 | const S32 LIST_STAT_RANGE = 0; | ||
148 | const S32 LIST_STAT_MIN = 1; | ||
149 | const S32 LIST_STAT_MAX = 2; | ||
150 | const S32 LIST_STAT_MEAN = 3; | ||
151 | const S32 LIST_STAT_MEDIAN = 4; | ||
152 | const S32 LIST_STAT_STD_DEV = 5; | ||
153 | const S32 LIST_STAT_SUM = 6; | ||
154 | const S32 LIST_STAT_SUM_SQUARES = 7; | ||
155 | const S32 LIST_STAT_NUM_COUNT = 8; | ||
156 | const S32 LIST_STAT_GEO_MEAN = 9; | ||
157 | |||
158 | #endif | ||