aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/constants.lsl
blob: 682fa05387d0151ca42ad01a29c7f765e9eb6a07 (plain)
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
float		PI			= 3.14159265358979323846264338327950;
float		PI_BY_TWO		= PI / 2;	// 1.57079632679489661923132169163975
float		TWO_PI			= PI * 2;	// 6.28318530717958647692528676655900
float		DEG_TO_RAD		= PI / 180.0;	// 0.01745329252
float		RAD_TO_DEG		= 180.0 / PI;	// 57.2957795131
float		SQRT2			= 1.4142135623730950488016887242097;

integer		CHANGED_INVENTORY	= 0x001;
integer		CHANGED_COLOR		= 0x002;
integer		CHANGED_SHAPE		= 0x004;
integer		CHANGED_SCALE		= 0x008;
integer		CHANGED_TEXTURE		= 0x010;
integer		CHANGED_LINK		= 0x020;
integer		CHANGED_ALLOWED_DROP	= 0x040;
integer		CHANGED_OWNER		= 0x080;
integer		CHANGED_REGION		= 0x100;
integer		CHANGED_TELEPORT	= 0x200;
integer		CHANGED_REGION_START	= 0x400;
integer		CHANGED_MEDIA		= 0x800;

integer		DEBUG_CHANNEL		= 2147483647;
integer		PUBLIC_CHANNEL		= 0;

integer		INVENTORY_ALL		= -1;
integer		INVENTORY_NONE		= -1;
integer		INVENTORY_TEXTURE	= 0;
integer		INVENTORY_SOUND		= 1;
integer		INVENTORY_LANDMARK	= 3;
integer		INVENTORY_CLOTHING	= 5;
integer		INVENTORY_OBJECT	= 6;
integer		INVENTORY_NOTECARD	= 7;
integer		INVENTORY_SCRIPT	= 10;
integer		INVENTORY_BODYPART	= 13;
integer		INVENTORY_ANIMATION	= 20;
integer		INVENTORY_GESTURE	= 21;

integer		ALL_SIDES		= -1;
integer		LINK_SET		= -1;
integer		LINK_ROOT		= 1;
integer		LINK_ALL_OTHERS		= -2;
integer		LINK_ALL_CHILDREN	= -3;
integer		LINK_THIS		= -4;

integer		PERM_ALL			= 0x7FFFFFFF;
integer		PERM_COPY			= 0x00008000;
integer		PERM_MODIFY			= 0x00004000;
integer		PERM_MOVE			= 0x00080000;
integer		PERM_TRANSFER			= 0x00002000;
integer		MASK_BASE			= 0;
integer		MASK_OWNER			= 1;
integer		MASK_GROUP			= 2;
integer		MASK_EVERYONE			= 3;
integer		MASK_NEXT			= 4;
integer		PERMISSION_DEBIT		= 0x0002;
integer		PERMISSION_TAKE_CONTROLS	= 0x0004;
integer		PERMISSION_TRIGGER_ANIMATION	= 0x0010;
integer		PERMISSION_ATTACH		= 0x0020;
integer		PERMISSION_CHANGE_LINKS		= 0x0080;
integer		PERMISSION_TRACK_CAMERA		= 0x0400;
integer		PERMISSION_CONTRAL_CAMERA	= 0x0800;

integer		AGENT			 = 0x01;
integer		ACTIVE			 = 0x02;
integer		PASSIVE			 = 0x04;
integer		SCRIPTED		 = 0x08;

integer		OBJECT_UNKNOWN_DETAIL	= -1;

integer		PRIM_BUMP_SHINY		= 19;
integer		PRIM_COLOR		= 18;
integer		PRIM_FLEXIBLE		= 21;
integer		PRIM_FULLBRIGHT		= 20;
integer		PRIM_GLOW		= 25;
integer		PRIM_MATERIAL		= 2;
integer		PRIM_PHANTOM		= 5;
integer		PRIM_PHYSICS		= 3;
integer		PRIM_POINT_LIGHT	= 23;
integer		PRIM_POSITION		= 6;
integer		PRIM_ROTATION		= 8;
integer		PRIM_SIZE		= 7;
integer		PRIM_TEMP_ON_REZ	= 4;
integer		PRIM_TYPE		= 9;
integer		PRIM_TYPE_OLD		= 1;
integer		PRIM_TEXGEN		= 22;
integer		PRIM_TEXTURE		= 17;
integer		PRIM_TEXT		= 26;

integer		PRIM_BUMP_NONE		= 0;
integer		PRIM_BUMP_BRIGHT	= 1;
integer		PRIM_BUMP_DARK		= 2;
integer		PRIM_BUMP_WOOD		= 3;
integer		PRIM_BUMP_BARK		= 4;
integer		PRIM_BUMP_BRICKS	= 5;
integer		PRIM_BUMP_CHECKER	= 6;
integer		PRIM_BUMP_CONCRETE	= 7;
integer		PRIM_BUMP_TILE		= 8;
integer		PRIM_BUMP_STONE		= 9;
integer		PRIM_BUMP_DISKS		= 10;
integer		PRIM_BUMP_GRAVEL	= 11;
integer		PRIM_BUMP_BLOBS		= 12;
integer		PRIM_BUMP_SIDING	= 13;
integer		PRIM_BUMP_LARGETILE	= 14;
integer		PRIM_BUMP_STUCCO	= 15;
integer		PRIM_BUMP_SUCTION	= 16;
integer		PRIM_BUMP_WEAVE		= 17;

integer		PRIM_HOLE_DEFAULT	= 0;
integer		PRIM_HOLE_CIRCLE	= 16;
integer		PRIM_HOLE_SQUARE	= 32;
integer		PRIM_HOLE_TRIANGLE	= 48;

integer		PRIM_MATERIAL_STONE	= 0;
integer		PRIM_MATERIAL_METAL	= 1;
integer		PRIM_MATERIAL_GLASS	= 2;
integer		PRIM_MATERIAL_WOOD	= 3;
integer		PRIM_MATERIAL_FLESH	= 4;
integer		PRIM_MATERIAL_PLASTIC	= 5;
integer		PRIM_MATERIAL_RUBBER	= 6;
integer		PRIM_MATERIAL_LIGHT	= 7;

integer		PRIM_SCULPT_TYPE_SPHERE		= 1;
integer		PRIM_SCULPT_TYPE_TORUS		= 2;
integer		PRIM_SCULPT_TYPE_PLANE		= 3;
integer		PRIM_SCULPT_TYPE_CYLINDER	= 4;
integer		PRIM_SCULPT_TYPE_MESH		= 5;
integer		PRIM_SCULPT_TYPE_MIMESH		= 6;

integer		PRIM_SHINY_NONE		= 0;
integer		PRIM_SHINY_LOW		= 1;
integer		PRIM_SHINY_MEDIUM	= 2;
integer		PRIM_SHINY_HIGH		= 3;

integer		PRIM_TYPE_BOX		= 0;
integer		PRIM_TYPE_CYLINDER	= 1;
integer		PRIM_TYPE_PRISM		= 2;
integer		PRIM_TYPE_SPHERE	= 3;
integer		PRIM_TYPE_TORUS		= 4;
integer		PRIM_TYPE_TUBE		= 5;
integer		PRIM_TYPE_RING		= 6;
integer		PRIM_TYPE_SCULPT	= 7;

integer		STRING_TRIM		= 3;
integer		STRING_TRIM_HEAD	= 1;
integer		STRING_TRIM_TAIL	= 2;

integer		TRUE			= 1;
integer		FALSE			= 0;

integer		TYPE_INTEGER		= 1;
integer		TYPE_FLOAT		= 2;
integer		TYPE_STRING		= 3;
integer		TYPE_KEY		= 4;
integer		TYPE_VECTOR		= 5;
integer		TYPE_ROTATION		= 6;
integer		TYPE_INVALID		= 0;

string		NULL_KEY		= "00000000-0000-0000-0000-000000000000";
string		EOF			= "\n\n\n";

rotation	ZERO_ROTATION		= <0.0, 0.0, 0.0, 1.0>;
vector		ZERO_VECTOR		= <0.0, 0.0, 0.0>;

// Functions.

float		llPow(float number, float places){}
float		llFrand(float max){}
integer		llRound(float number){}

key		llDetectedKey(integer index){}
key		llDetectedGroup(integer index){}
integer		llSameGroup(key avatar){}

float		llGetAlpha(integer side){}
		llSetAlpha(float alpha, integer side){}
		llSetColor(vector colour, integer side){}
		llSetPrimitiveParams(list params){}
		llSetScale(vector scale){}
		llSetSitText(string text){}
		llSetText(string text, vector colour, float alpha){}
		llSitTarget(vector pos, rotation rot){}

integer		llGetLinkNumber(){}
string		llGetObjectDesc(){}
		llSetObjectDesc(string text){}
string		llGetObjectName(){}
		llSetObjectName(string text){}

string		llGetInventoryName(integer type, integer index){}
integer		llGetInventoryNumber(integer type){}
integer		llGetInventoryType(string name){}
key		llGetNotecardLine(string name, integer index){}

		llDie(){}
integer		llGetFreeMemory(){}
string		llGetScriptName(){}
float		llGetTime(){}
		llResetOtherScript(string name){}
		llResetScript(){}
		llResetTime(){}
		llSetScriptState(string name, integer running){}
		llSetTimerEvent(float seconds){}
		llSleep(float seconds){}

		llPlaySound(string name, float volume){}
		llRezObject(string name, vector position, vector velocity, rotation rot, integer channel){}
		llRezAtRoot(string name, vector position, vector velocity, rotation rot, integer channel){}

vector		llGetPos(){}
		llSetPos(vector pos){}
rotation	llGetRot(){}
		llSetRot(rotation rot){}

rotation	llEuler2Rot(vector vec){}
vector		llRot2Euler(rotation rot){}

string		llGetSubString(string text, integer start, integer end){}
integer		llStringLength(string text){}
string		llStringTrim(string text, integer type){}
integer		llSubStringIndex(string text, string sub){}
list		llParseString2List(string in, list l, list l1){}
list		llParseStringKeepNulls(string in, list l, list l1){}

list		llCSV2List(string text){}
list		llDeleteSubList(list l, integer start, integer end){}
string		llDumpList2String(list l, string separator){}
string		llList2CSV(list l){}
float		llList2Float(list l, integer index){}
integer		llList2Integer(list l, integer index){}
key		llList2Key(list l, integer index){}
list		llList2List(list l, integer start, integer end){}
string		llList2String(list l, integer index){}
rotation	llList2Rotation(list l, integer index){}
vector		llList2Vector(list l, integer index){}
integer		llListFindList(list l, list l1){}
list		llListInsertList(list l, list l1, integer index){}
integer		llGetListLength(list l){}
list		llListReplaceList(list l, list part, integer start, integer end){}
list		llListSort(list l, integer stride, integer ascending){}

key		llAvatarOnSitTarget(){}
list		llGetAnimationList(key id){}
key		llGetKey(){}
key		llGetOwner(){}
integer		llGetPermissions(){}
key		llGetPermissionsKey(){}
string		llKey2Name(key avatar){}
		llRequestPermissions(key avatar, integer perms){}
		llStartAnimation(string anim){}
		llStopAnimation(string anim){}
		llUnSit(key avatar){}


		llDialog(key avatar, string caption, list arseBackwardsMenu, integer channel){}
integer		llListen(integer channel, string name, key id, string msg){}
		llListenRemove(integer handle){}
		llOwnerSay(string text){}
		llSay(integer channel, string text){}
		llShout(integer channel, string text){}
		llWhisper(integer channel, string text){}

		llMessageLinked(integer link, integer num, string text, key aKey){}