1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
|
/**
* @file lllslconstants.h
* @author James Cook
* @brief Constants used in lsl.
*
* $LicenseInfo:firstyear=2006&license=viewergpl$
*
* Copyright (c) 2006-2007, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linden Lab
* to you under the terms of the GNU General Public License, version 2.0
* ("GPL"), unless you have obtained a separate licensing agreement
* ("Other License"), formally executed by you and Linden Lab. Terms of
* the GPL can be found in doc/GPL-license.txt in this distribution, or
* online at http://secondlife.com/developers/opensource/gplv2
*
* There are special exceptions to the terms and conditions of the GPL as
* it is applied to this Source Code. View the full text of the exception
* in the file doc/FLOSS-exception.txt in this software distribution, or
* online at http://secondlife.com/developers/opensource/flossexception
*
* By copying, modifying or distributing this software, you acknowledge
* that you have read and understood your obligations described above,
* and agree to abide by those obligations.
*
* ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
* COMPLETENESS OR PERFORMANCE.
* $/LicenseInfo$
*/
#ifndef LL_LLLSLCONSTANTS_H
#define LL_LLLSLCONSTANTS_H
// LSL: Return flags for llGetAgentInfo
const U32 AGENT_FLYING = 0x0001;
const U32 AGENT_ATTACHMENTS = 0x0002;
const U32 AGENT_SCRIPTED = 0x0004;
const U32 AGENT_MOUSELOOK = 0x0008;
const U32 AGENT_SITTING = 0x0010;
const U32 AGENT_ON_OBJECT = 0x0020;
const U32 AGENT_AWAY = 0x0040;
const U32 AGENT_WALKING = 0x0080;
const U32 AGENT_IN_AIR = 0x0100;
const U32 AGENT_TYPING = 0x0200;
const U32 AGENT_CROUCHING = 0x0400;
const U32 AGENT_BUSY = 0x0800;
const U32 AGENT_ALWAYS_RUN = 0x1000;
const S32 LSL_REMOTE_DATA_CHANNEL = 1;
const S32 LSL_REMOTE_DATA_REQUEST = 2;
const S32 LSL_REMOTE_DATA_REPLY = 3;
// Constants used in extended LSL primitive setter and getters
const S32 LSL_PRIM_TYPE_LEGACY = 1; // No longer supported.
const S32 LSL_PRIM_MATERIAL = 2;
const S32 LSL_PRIM_PHYSICS = 3;
const S32 LSL_PRIM_TEMP_ON_REZ = 4;
const S32 LSL_PRIM_PHANTOM = 5;
const S32 LSL_PRIM_POSITION = 6;
const S32 LSL_PRIM_SIZE = 7;
const S32 LSL_PRIM_ROTATION = 8;
const S32 LSL_PRIM_TYPE = 9; // Replacement for LSL_PRIM_TYPE_LEGACY
const S32 LSL_PRIM_TEXTURE = 17;
const S32 LSL_PRIM_COLOR = 18;
const S32 LSL_PRIM_BUMP_SHINY = 19;
const S32 LSL_PRIM_FULLBRIGHT = 20;
const S32 LSL_PRIM_FLEXIBLE = 21;
const S32 LSL_PRIM_TEXGEN = 22;
const S32 LSL_PRIM_POINT_LIGHT = 23;
const S32 LSL_PRIM_CAST_SHADOWS = 24;
const S32 LSL_PRIM_GLOW = 25;
const S32 LSL_PRIM_TYPE_BOX = 0;
const S32 LSL_PRIM_TYPE_CYLINDER= 1;
const S32 LSL_PRIM_TYPE_PRISM = 2;
const S32 LSL_PRIM_TYPE_SPHERE = 3;
const S32 LSL_PRIM_TYPE_TORUS = 4;
const S32 LSL_PRIM_TYPE_TUBE = 5;
const S32 LSL_PRIM_TYPE_RING = 6;
const S32 LSL_PRIM_TYPE_SCULPT = 7;
const S32 LSL_PRIM_HOLE_DEFAULT = 0x00;
const S32 LSL_PRIM_HOLE_CIRCLE = 0x10;
const S32 LSL_PRIM_HOLE_SQUARE = 0x20;
const S32 LSL_PRIM_HOLE_TRIANGLE= 0x30;
const S32 LSL_PRIM_MATERIAL_STONE = 0;
const S32 LSL_PRIM_MATERIAL_METAL = 1;
const S32 LSL_PRIM_MATERIAL_GLASS = 2;
const S32 LSL_PRIM_MATERIAL_WOOD = 3;
const S32 LSL_PRIM_MATERIAL_FLESH = 4;
const S32 LSL_PRIM_MATERIAL_PLASTIC = 5;
const S32 LSL_PRIM_MATERIAL_RUBBER = 6;
const S32 LSL_PRIM_MATERIAL_LIGHT = 7;
const S32 LSL_PRIM_SHINY_NONE = 0;
const S32 LSL_PRIM_SHINY_LOW = 1;
const S32 LSL_PRIM_SHINY_MEDIUM = 2;
const S32 LSL_PRIM_SHINY_HIGH = 3;
const S32 LSL_PRIM_TEXGEN_DEFAULT = 0;
const S32 LSL_PRIM_TEXGEN_PLANAR = 1;
const S32 LSL_PRIM_BUMP_NONE = 0;
const S32 LSL_PRIM_BUMP_BRIGHT = 1;
const S32 LSL_PRIM_BUMP_DARK = 2;
const S32 LSL_PRIM_BUMP_WOOD = 3;
const S32 LSL_PRIM_BUMP_BARK = 4;
const S32 LSL_PRIM_BUMP_BRICKS = 5;
const S32 LSL_PRIM_BUMP_CHECKER = 6;
const S32 LSL_PRIM_BUMP_CONCRETE = 7;
const S32 LSL_PRIM_BUMP_TILE = 8;
const S32 LSL_PRIM_BUMP_STONE = 9;
const S32 LSL_PRIM_BUMP_DISKS = 10;
const S32 LSL_PRIM_BUMP_GRAVEL = 11;
const S32 LSL_PRIM_BUMP_BLOBS = 12;
const S32 LSL_PRIM_BUMP_SIDING = 13;
const S32 LSL_PRIM_BUMP_LARGETILE = 14;
const S32 LSL_PRIM_BUMP_STUCCO = 15;
const S32 LSL_PRIM_BUMP_SUCTION = 16;
const S32 LSL_PRIM_BUMP_WEAVE = 17;
const S32 LSL_PRIM_SCULPT_TYPE_SPHERE = 1;
const S32 LSL_PRIM_SCULPT_TYPE_TORUS = 2;
const S32 LSL_PRIM_SCULPT_TYPE_PLANE = 3;
const S32 LSL_PRIM_SCULPT_TYPE_CYLINDER = 4;
const S32 LSL_PRIM_SCULPT_TYPE_MASK = 7;
const S32 LSL_PRIM_SCULPT_FLAG_INVERT = 64;
const S32 LSL_PRIM_SCULPT_FLAG_MIRROR = 128;
const S32 LSL_ALL_SIDES = -1;
const S32 LSL_LINK_ROOT = 1;
const S32 LSL_LINK_FIRST_CHILD = 2;
const S32 LSL_LINK_SET = -1;
const S32 LSL_LINK_ALL_OTHERS = -2;
const S32 LSL_LINK_ALL_CHILDREN = -3;
const S32 LSL_LINK_THIS = -4;
// LSL constants for llSetForSell
const S32 SELL_NOT = 0;
const S32 SELL_ORIGINAL = 1;
const S32 SELL_COPY = 2;
const S32 SELL_CONTENTS = 3;
// LSL constants for llSetPayPrice
const S32 PAY_PRICE_HIDE = -1;
const S32 PAY_PRICE_DEFAULT = -2;
const S32 MAX_PAY_BUTTONS = 4;
const S32 PAY_BUTTON_DEFAULT_0 = 1;
const S32 PAY_BUTTON_DEFAULT_1 = 5;
const S32 PAY_BUTTON_DEFAULT_2 = 10;
const S32 PAY_BUTTON_DEFAULT_3 = 20;
// lsl email registration.
const S32 EMAIL_REG_SUBSCRIBE_OBJECT = 0x01;
const S32 EMAIL_REG_UNSUBSCRIBE_OBJECT = 0x02;
const S32 EMAIL_REG_UNSUBSCRIBE_SIM = 0x04;
const S32 LIST_STAT_RANGE = 0;
const S32 LIST_STAT_MIN = 1;
const S32 LIST_STAT_MAX = 2;
const S32 LIST_STAT_MEAN = 3;
const S32 LIST_STAT_MEDIAN = 4;
const S32 LIST_STAT_STD_DEV = 5;
const S32 LIST_STAT_SUM = 6;
const S32 LIST_STAT_SUM_SQUARES = 7;
const S32 LIST_STAT_NUM_COUNT = 8;
const S32 LIST_STAT_GEO_MEAN = 9;
const S32 STRING_TRIM_HEAD = 0x01;
const S32 STRING_TRIM_TAIL = 0x02;
const S32 STRING_TRIM = STRING_TRIM_HEAD | STRING_TRIM_TAIL;
// llGetObjectDetails
const S32 OBJECT_UNKNOWN_DETAIL = -1;
const S32 OBJECT_NAME = 1;
const S32 OBJECT_DESC = 2;
const S32 OBJECT_POS = 3;
const S32 OBJECT_ROT = 4;
const S32 OBJECT_VELOCITY = 5;
const S32 OBJECT_OWNER = 6;
const S32 OBJECT_GROUP = 7;
const S32 OBJECT_CREATOR = 8;
// llTextBox() magic token string - yes this is a hack. sue me.
const std::string TEXTBOX_MAGIC_TOKEN = "!!llTextBox!!";
#endif
|