aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/lllslconstants.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llcommon/lllslconstants.h
parentREADME.txt (diff)
downloadmeta-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.h158
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
33const U32 AGENT_FLYING = 0x0001;
34const U32 AGENT_ATTACHMENTS = 0x0002;
35const U32 AGENT_SCRIPTED = 0x0004;
36const U32 AGENT_MOUSELOOK = 0x0008;
37const U32 AGENT_SITTING = 0x0010;
38const U32 AGENT_ON_OBJECT = 0x0020;
39const U32 AGENT_AWAY = 0x0040;
40const U32 AGENT_WALKING = 0x0080;
41const U32 AGENT_IN_AIR = 0x0100;
42const U32 AGENT_TYPING = 0x0200;
43const U32 AGENT_CROUCHING = 0x0400;
44const U32 AGENT_BUSY = 0x0800;
45const U32 AGENT_ALWAYS_RUN = 0x1000;
46
47const S32 LSL_REMOTE_DATA_CHANNEL = 1;
48const S32 LSL_REMOTE_DATA_REQUEST = 2;
49const S32 LSL_REMOTE_DATA_REPLY = 3;
50
51// Constants used in extended LSL primitive setter and getters
52const S32 LSL_PRIM_TYPE_LEGACY = 1; // No longer supported.
53const S32 LSL_PRIM_MATERIAL = 2;
54const S32 LSL_PRIM_PHYSICS = 3;
55const S32 LSL_PRIM_TEMP_ON_REZ = 4;
56const S32 LSL_PRIM_PHANTOM = 5;
57const S32 LSL_PRIM_POSITION = 6;
58const S32 LSL_PRIM_SIZE = 7;
59const S32 LSL_PRIM_ROTATION = 8;
60const S32 LSL_PRIM_TYPE = 9; // Replacement for LSL_PRIM_TYPE_LEGACY
61const S32 LSL_PRIM_TEXTURE = 17;
62const S32 LSL_PRIM_COLOR = 18;
63const S32 LSL_PRIM_BUMP_SHINY = 19;
64const S32 LSL_PRIM_FULLBRIGHT = 20;
65const S32 LSL_PRIM_FLEXIBLE = 21;
66const S32 LSL_PRIM_TEXGEN = 22;
67const S32 LSL_PRIM_POINT_LIGHT = 23;
68const S32 LSL_PRIM_CAST_SHADOWS = 24;
69
70const S32 LSL_PRIM_TYPE_BOX = 0;
71const S32 LSL_PRIM_TYPE_CYLINDER= 1;
72const S32 LSL_PRIM_TYPE_PRISM = 2;
73const S32 LSL_PRIM_TYPE_SPHERE = 3;
74const S32 LSL_PRIM_TYPE_TORUS = 4;
75const S32 LSL_PRIM_TYPE_TUBE = 5;
76const S32 LSL_PRIM_TYPE_RING = 6;
77
78const S32 LSL_PRIM_HOLE_DEFAULT = 0x00;
79const S32 LSL_PRIM_HOLE_CIRCLE = 0x10;
80const S32 LSL_PRIM_HOLE_SQUARE = 0x20;
81const S32 LSL_PRIM_HOLE_TRIANGLE= 0x30;
82
83const S32 LSL_PRIM_MATERIAL_STONE = 0;
84const S32 LSL_PRIM_MATERIAL_METAL = 1;
85const S32 LSL_PRIM_MATERIAL_GLASS = 2;
86const S32 LSL_PRIM_MATERIAL_WOOD = 3;
87const S32 LSL_PRIM_MATERIAL_FLESH = 4;
88const S32 LSL_PRIM_MATERIAL_PLASTIC = 5;
89const S32 LSL_PRIM_MATERIAL_RUBBER = 6;
90const S32 LSL_PRIM_MATERIAL_LIGHT = 7;
91
92const S32 LSL_PRIM_SHINY_NONE = 0;
93const S32 LSL_PRIM_SHINY_LOW = 1;
94const S32 LSL_PRIM_SHINY_MEDIUM = 2;
95const S32 LSL_PRIM_SHINY_HIGH = 3;
96
97const S32 LSL_PRIM_TEXGEN_DEFAULT = 0;
98const S32 LSL_PRIM_TEXGEN_PLANAR = 1;
99
100const S32 LSL_PRIM_BUMP_NONE = 0;
101const S32 LSL_PRIM_BUMP_BRIGHT = 1;
102const S32 LSL_PRIM_BUMP_DARK = 2;
103const S32 LSL_PRIM_BUMP_WOOD = 3;
104const S32 LSL_PRIM_BUMP_BARK = 4;
105const S32 LSL_PRIM_BUMP_BRICKS = 5;
106const S32 LSL_PRIM_BUMP_CHECKER = 6;
107const S32 LSL_PRIM_BUMP_CONCRETE = 7;
108const S32 LSL_PRIM_BUMP_TILE = 8;
109const S32 LSL_PRIM_BUMP_STONE = 9;
110const S32 LSL_PRIM_BUMP_DISKS = 10;
111const S32 LSL_PRIM_BUMP_GRAVEL = 11;
112const S32 LSL_PRIM_BUMP_BLOBS = 12;
113const S32 LSL_PRIM_BUMP_SIDING = 13;
114const S32 LSL_PRIM_BUMP_LARGETILE = 14;
115const S32 LSL_PRIM_BUMP_STUCCO = 15;
116const S32 LSL_PRIM_BUMP_SUCTION = 16;
117const S32 LSL_PRIM_BUMP_WEAVE = 17;
118
119const S32 LSL_ALL_SIDES = -1;
120const S32 LSL_LINK_ROOT = 1;
121const S32 LSL_LINK_FIRST_CHILD = 2;
122const S32 LSL_LINK_SET = -1;
123const S32 LSL_LINK_ALL_OTHERS = -2;
124const S32 LSL_LINK_ALL_CHILDREN = -3;
125const S32 LSL_LINK_THIS = -4;
126
127// LSL constants for llSetForSell
128const S32 SELL_NOT = 0;
129const S32 SELL_ORIGINAL = 1;
130const S32 SELL_COPY = 2;
131const S32 SELL_CONTENTS = 3;
132
133// LSL constants for llSetPayPrice
134const S32 PAY_PRICE_HIDE = -1;
135const S32 PAY_PRICE_DEFAULT = -2;
136const S32 MAX_PAY_BUTTONS = 4;
137const S32 PAY_BUTTON_DEFAULT_0 = 1;
138const S32 PAY_BUTTON_DEFAULT_1 = 5;
139const S32 PAY_BUTTON_DEFAULT_2 = 10;
140const S32 PAY_BUTTON_DEFAULT_3 = 20;
141
142// lsl email registration.
143const S32 EMAIL_REG_SUBSCRIBE_OBJECT = 0x01;
144const S32 EMAIL_REG_UNSUBSCRIBE_OBJECT = 0x02;
145const S32 EMAIL_REG_UNSUBSCRIBE_SIM = 0x04;
146
147const S32 LIST_STAT_RANGE = 0;
148const S32 LIST_STAT_MIN = 1;
149const S32 LIST_STAT_MAX = 2;
150const S32 LIST_STAT_MEAN = 3;
151const S32 LIST_STAT_MEDIAN = 4;
152const S32 LIST_STAT_STD_DEV = 5;
153const S32 LIST_STAT_SUM = 6;
154const S32 LIST_STAT_SUM_SQUARES = 7;
155const S32 LIST_STAT_NUM_COUNT = 8;
156const S32 LIST_STAT_GEO_MEAN = 9;
157
158#endif