opensim – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | eva | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ |
||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
||
4 | * |
||
5 | * Redistribution and use in source and binary forms, with or without |
||
6 | * modification, are permitted provided that the following conditions are met: |
||
7 | * * Redistributions of source code must retain the above copyright |
||
8 | * notice, this list of conditions and the following disclaimer. |
||
9 | * * Redistributions in binary form must reproduce the above copyright |
||
10 | * notice, this list of conditions and the following disclaimer in the |
||
11 | * documentation and/or other materials provided with the distribution. |
||
12 | * * Neither the name of the OpenSimulator Project nor the |
||
13 | * names of its contributors may be used to endorse or promote products |
||
14 | * derived from this software without specific prior written permission. |
||
15 | * |
||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY |
||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY |
||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||
26 | */ |
||
27 | |||
28 | using System; |
||
29 | using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3; |
||
30 | using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion; |
||
31 | using LSLInteger = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger; |
||
32 | |||
33 | namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase |
||
34 | { |
||
35 | public partial class ScriptBaseClass |
||
36 | { |
||
37 | // LSL CONSTANTS |
||
38 | public static readonly LSLInteger TRUE = new LSLInteger(1); |
||
39 | public static readonly LSLInteger FALSE = new LSLInteger(0); |
||
40 | |||
41 | public const int STATUS_PHYSICS = 1; |
||
42 | public const int STATUS_ROTATE_X = 2; |
||
43 | public const int STATUS_ROTATE_Y = 4; |
||
44 | public const int STATUS_ROTATE_Z = 8; |
||
45 | public const int STATUS_PHANTOM = 16; |
||
46 | public const int STATUS_SANDBOX = 32; |
||
47 | public const int STATUS_BLOCK_GRAB = 64; |
||
48 | public const int STATUS_DIE_AT_EDGE = 128; |
||
49 | public const int STATUS_RETURN_AT_EDGE = 256; |
||
50 | public const int STATUS_CAST_SHADOWS = 512; |
||
51 | |||
52 | public const int AGENT = 1; |
||
53 | public const int AGENT_BY_LEGACY_NAME = 1; |
||
54 | public const int AGENT_BY_USERNAME = 0x10; |
||
55 | public const int NPC = 0x20; |
||
56 | public const int ACTIVE = 2; |
||
57 | public const int PASSIVE = 4; |
||
58 | public const int SCRIPTED = 8; |
||
59 | public const int OS_NPC = 0x01000000; |
||
60 | |||
61 | public const int CONTROL_FWD = 1; |
||
62 | public const int CONTROL_BACK = 2; |
||
63 | public const int CONTROL_LEFT = 4; |
||
64 | public const int CONTROL_RIGHT = 8; |
||
65 | public const int CONTROL_UP = 16; |
||
66 | public const int CONTROL_DOWN = 32; |
||
67 | public const int CONTROL_ROT_LEFT = 256; |
||
68 | public const int CONTROL_ROT_RIGHT = 512; |
||
69 | public const int CONTROL_LBUTTON = 268435456; |
||
70 | public const int CONTROL_ML_LBUTTON = 1073741824; |
||
71 | |||
72 | //Permissions |
||
73 | public const int PERMISSION_DEBIT = 2; |
||
74 | public const int PERMISSION_TAKE_CONTROLS = 4; |
||
75 | public const int PERMISSION_REMAP_CONTROLS = 8; |
||
76 | public const int PERMISSION_TRIGGER_ANIMATION = 16; |
||
77 | public const int PERMISSION_ATTACH = 32; |
||
78 | public const int PERMISSION_RELEASE_OWNERSHIP = 64; |
||
79 | public const int PERMISSION_CHANGE_LINKS = 128; |
||
80 | public const int PERMISSION_CHANGE_JOINTS = 256; |
||
81 | public const int PERMISSION_CHANGE_PERMISSIONS = 512; |
||
82 | public const int PERMISSION_TRACK_CAMERA = 1024; |
||
83 | public const int PERMISSION_CONTROL_CAMERA = 2048; |
||
84 | |||
85 | public const int AGENT_FLYING = 1; |
||
86 | public const int AGENT_ATTACHMENTS = 2; |
||
87 | public const int AGENT_SCRIPTED = 4; |
||
88 | public const int AGENT_MOUSELOOK = 8; |
||
89 | public const int AGENT_SITTING = 16; |
||
90 | public const int AGENT_ON_OBJECT = 32; |
||
91 | public const int AGENT_AWAY = 64; |
||
92 | public const int AGENT_WALKING = 128; |
||
93 | public const int AGENT_IN_AIR = 256; |
||
94 | public const int AGENT_TYPING = 512; |
||
95 | public const int AGENT_CROUCHING = 1024; |
||
96 | public const int AGENT_BUSY = 2048; |
||
97 | public const int AGENT_ALWAYS_RUN = 4096; |
||
98 | |||
99 | //Particle Systems |
||
100 | public const int PSYS_PART_INTERP_COLOR_MASK = 1; |
||
101 | public const int PSYS_PART_INTERP_SCALE_MASK = 2; |
||
102 | public const int PSYS_PART_BOUNCE_MASK = 4; |
||
103 | public const int PSYS_PART_WIND_MASK = 8; |
||
104 | public const int PSYS_PART_FOLLOW_SRC_MASK = 16; |
||
105 | public const int PSYS_PART_FOLLOW_VELOCITY_MASK = 32; |
||
106 | public const int PSYS_PART_TARGET_POS_MASK = 64; |
||
107 | public const int PSYS_PART_TARGET_LINEAR_MASK = 128; |
||
108 | public const int PSYS_PART_EMISSIVE_MASK = 256; |
||
109 | public const int PSYS_PART_RIBBON_MASK = 1024; |
||
110 | public const int PSYS_PART_FLAGS = 0; |
||
111 | public const int PSYS_PART_START_COLOR = 1; |
||
112 | public const int PSYS_PART_START_ALPHA = 2; |
||
113 | public const int PSYS_PART_END_COLOR = 3; |
||
114 | public const int PSYS_PART_END_ALPHA = 4; |
||
115 | public const int PSYS_PART_START_SCALE = 5; |
||
116 | public const int PSYS_PART_END_SCALE = 6; |
||
117 | public const int PSYS_PART_MAX_AGE = 7; |
||
118 | public const int PSYS_SRC_ACCEL = 8; |
||
119 | public const int PSYS_SRC_PATTERN = 9; |
||
120 | public const int PSYS_SRC_INNERANGLE = 10; |
||
121 | public const int PSYS_SRC_OUTERANGLE = 11; |
||
122 | public const int PSYS_SRC_TEXTURE = 12; |
||
123 | public const int PSYS_SRC_BURST_RATE = 13; |
||
124 | public const int PSYS_SRC_BURST_PART_COUNT = 15; |
||
125 | public const int PSYS_SRC_BURST_RADIUS = 16; |
||
126 | public const int PSYS_SRC_BURST_SPEED_MIN = 17; |
||
127 | public const int PSYS_SRC_BURST_SPEED_MAX = 18; |
||
128 | public const int PSYS_SRC_MAX_AGE = 19; |
||
129 | public const int PSYS_SRC_TARGET_KEY = 20; |
||
130 | public const int PSYS_SRC_OMEGA = 21; |
||
131 | public const int PSYS_SRC_ANGLE_BEGIN = 22; |
||
132 | public const int PSYS_SRC_ANGLE_END = 23; |
||
133 | public const int PSYS_PART_BLEND_FUNC_SOURCE = 24; |
||
134 | public const int PSYS_PART_BLEND_FUNC_DEST = 25; |
||
135 | public const int PSYS_PART_START_GLOW = 26; |
||
136 | public const int PSYS_PART_END_GLOW = 27; |
||
137 | public const int PSYS_PART_BF_ONE = 0; |
||
138 | public const int PSYS_PART_BF_ZERO = 1; |
||
139 | public const int PSYS_PART_BF_DEST_COLOR = 2; |
||
140 | public const int PSYS_PART_BF_SOURCE_COLOR = 3; |
||
141 | public const int PSYS_PART_BF_ONE_MINUS_DEST_COLOR = 4; |
||
142 | public const int PSYS_PART_BF_ONE_MINUS_SOURCE_COLOR = 5; |
||
143 | public const int PSYS_PART_BF_SOURCE_ALPHA = 7; |
||
144 | public const int PSYS_PART_BF_ONE_MINUS_SOURCE_ALPHA = 9; |
||
145 | public const int PSYS_SRC_PATTERN_DROP = 1; |
||
146 | public const int PSYS_SRC_PATTERN_EXPLODE = 2; |
||
147 | public const int PSYS_SRC_PATTERN_ANGLE = 4; |
||
148 | public const int PSYS_SRC_PATTERN_ANGLE_CONE = 8; |
||
149 | public const int PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY = 16; |
||
150 | |||
151 | public const int VEHICLE_TYPE_NONE = 0; |
||
152 | public const int VEHICLE_TYPE_SLED = 1; |
||
153 | public const int VEHICLE_TYPE_CAR = 2; |
||
154 | public const int VEHICLE_TYPE_BOAT = 3; |
||
155 | public const int VEHICLE_TYPE_AIRPLANE = 4; |
||
156 | public const int VEHICLE_TYPE_BALLOON = 5; |
||
157 | public const int VEHICLE_LINEAR_FRICTION_TIMESCALE = 16; |
||
158 | public const int VEHICLE_ANGULAR_FRICTION_TIMESCALE = 17; |
||
159 | public const int VEHICLE_LINEAR_MOTOR_DIRECTION = 18; |
||
160 | public const int VEHICLE_LINEAR_MOTOR_OFFSET = 20; |
||
161 | public const int VEHICLE_ANGULAR_MOTOR_DIRECTION = 19; |
||
162 | public const int VEHICLE_HOVER_HEIGHT = 24; |
||
163 | public const int VEHICLE_HOVER_EFFICIENCY = 25; |
||
164 | public const int VEHICLE_HOVER_TIMESCALE = 26; |
||
165 | public const int VEHICLE_BUOYANCY = 27; |
||
166 | public const int VEHICLE_LINEAR_DEFLECTION_EFFICIENCY = 28; |
||
167 | public const int VEHICLE_LINEAR_DEFLECTION_TIMESCALE = 29; |
||
168 | public const int VEHICLE_LINEAR_MOTOR_TIMESCALE = 30; |
||
169 | public const int VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE = 31; |
||
170 | public const int VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY = 32; |
||
171 | public const int VEHICLE_ANGULAR_DEFLECTION_TIMESCALE = 33; |
||
172 | public const int VEHICLE_ANGULAR_MOTOR_TIMESCALE = 34; |
||
173 | public const int VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE = 35; |
||
174 | public const int VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY = 36; |
||
175 | public const int VEHICLE_VERTICAL_ATTRACTION_TIMESCALE = 37; |
||
176 | public const int VEHICLE_BANKING_EFFICIENCY = 38; |
||
177 | public const int VEHICLE_BANKING_MIX = 39; |
||
178 | public const int VEHICLE_BANKING_TIMESCALE = 40; |
||
179 | public const int VEHICLE_REFERENCE_FRAME = 44; |
||
180 | public const int VEHICLE_RANGE_BLOCK = 45; |
||
181 | public const int VEHICLE_ROLL_FRAME = 46; |
||
182 | public const int VEHICLE_FLAG_NO_DEFLECTION_UP = 1; |
||
183 | public const int VEHICLE_FLAG_LIMIT_ROLL_ONLY = 2; |
||
184 | public const int VEHICLE_FLAG_HOVER_WATER_ONLY = 4; |
||
185 | public const int VEHICLE_FLAG_HOVER_TERRAIN_ONLY = 8; |
||
186 | public const int VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT = 16; |
||
187 | public const int VEHICLE_FLAG_HOVER_UP_ONLY = 32; |
||
188 | public const int VEHICLE_FLAG_LIMIT_MOTOR_UP = 64; |
||
189 | public const int VEHICLE_FLAG_MOUSELOOK_STEER = 128; |
||
190 | public const int VEHICLE_FLAG_MOUSELOOK_BANK = 256; |
||
191 | public const int VEHICLE_FLAG_CAMERA_DECOUPLED = 512; |
||
192 | public const int VEHICLE_FLAG_NO_X = 1024; |
||
193 | public const int VEHICLE_FLAG_NO_Y = 2048; |
||
194 | public const int VEHICLE_FLAG_NO_Z = 4096; |
||
195 | public const int VEHICLE_FLAG_LOCK_HOVER_HEIGHT = 8192; |
||
196 | public const int VEHICLE_FLAG_NO_DEFLECTION = 16392; |
||
197 | public const int VEHICLE_FLAG_LOCK_ROTATION = 32784; |
||
198 | |||
199 | public const int INVENTORY_ALL = -1; |
||
200 | public const int INVENTORY_NONE = -1; |
||
201 | public const int INVENTORY_TEXTURE = 0; |
||
202 | public const int INVENTORY_SOUND = 1; |
||
203 | public const int INVENTORY_LANDMARK = 3; |
||
204 | public const int INVENTORY_CLOTHING = 5; |
||
205 | public const int INVENTORY_OBJECT = 6; |
||
206 | public const int INVENTORY_NOTECARD = 7; |
||
207 | public const int INVENTORY_SCRIPT = 10; |
||
208 | public const int INVENTORY_BODYPART = 13; |
||
209 | public const int INVENTORY_ANIMATION = 20; |
||
210 | public const int INVENTORY_GESTURE = 21; |
||
211 | |||
212 | public const int ATTACH_CHEST = 1; |
||
213 | public const int ATTACH_HEAD = 2; |
||
214 | public const int ATTACH_LSHOULDER = 3; |
||
215 | public const int ATTACH_RSHOULDER = 4; |
||
216 | public const int ATTACH_LHAND = 5; |
||
217 | public const int ATTACH_RHAND = 6; |
||
218 | public const int ATTACH_LFOOT = 7; |
||
219 | public const int ATTACH_RFOOT = 8; |
||
220 | public const int ATTACH_BACK = 9; |
||
221 | public const int ATTACH_PELVIS = 10; |
||
222 | public const int ATTACH_MOUTH = 11; |
||
223 | public const int ATTACH_CHIN = 12; |
||
224 | public const int ATTACH_LEAR = 13; |
||
225 | public const int ATTACH_REAR = 14; |
||
226 | public const int ATTACH_LEYE = 15; |
||
227 | public const int ATTACH_REYE = 16; |
||
228 | public const int ATTACH_NOSE = 17; |
||
229 | public const int ATTACH_RUARM = 18; |
||
230 | public const int ATTACH_RLARM = 19; |
||
231 | public const int ATTACH_LUARM = 20; |
||
232 | public const int ATTACH_LLARM = 21; |
||
233 | public const int ATTACH_RHIP = 22; |
||
234 | public const int ATTACH_RULEG = 23; |
||
235 | public const int ATTACH_RLLEG = 24; |
||
236 | public const int ATTACH_LHIP = 25; |
||
237 | public const int ATTACH_LULEG = 26; |
||
238 | public const int ATTACH_LLLEG = 27; |
||
239 | public const int ATTACH_BELLY = 28; |
||
240 | public const int ATTACH_RPEC = 29; |
||
241 | public const int ATTACH_LPEC = 30; |
||
242 | public const int ATTACH_LEFT_PEC = 29; // Same value as ATTACH_RPEC, see https://jira.secondlife.com/browse/SVC-580 |
||
243 | public const int ATTACH_RIGHT_PEC = 30; // Same value as ATTACH_LPEC, see https://jira.secondlife.com/browse/SVC-580 |
||
244 | public const int ATTACH_HUD_CENTER_2 = 31; |
||
245 | public const int ATTACH_HUD_TOP_RIGHT = 32; |
||
246 | public const int ATTACH_HUD_TOP_CENTER = 33; |
||
247 | public const int ATTACH_HUD_TOP_LEFT = 34; |
||
248 | public const int ATTACH_HUD_CENTER_1 = 35; |
||
249 | public const int ATTACH_HUD_BOTTOM_LEFT = 36; |
||
250 | public const int ATTACH_HUD_BOTTOM = 37; |
||
251 | public const int ATTACH_HUD_BOTTOM_RIGHT = 38; |
||
252 | |||
253 | #region osMessageAttachments constants |
||
254 | |||
255 | /// <summary> |
||
256 | /// Instructs osMessageAttachements to send the message to attachments |
||
257 | /// on every point. |
||
258 | /// </summary> |
||
259 | /// <remarks> |
||
260 | /// One might expect this to be named OS_ATTACH_ALL, but then one might |
||
261 | /// also expect functions designed to attach or detach or get |
||
262 | /// attachments to work with it too. Attaching a no-copy item to |
||
263 | /// many attachments could be dangerous. |
||
264 | /// when combined with OS_ATTACH_MSG_INVERT_POINTS, will prevent the |
||
265 | /// message from being sent. |
||
266 | /// if combined with OS_ATTACH_MSG_OBJECT_CREATOR or |
||
267 | /// OS_ATTACH_MSG_SCRIPT_CREATOR, could result in no message being |
||
268 | /// sent- this is expected behaviour. |
||
269 | /// </remarks> |
||
270 | public const int OS_ATTACH_MSG_ALL = -65535; |
||
271 | |||
272 | /// <summary> |
||
273 | /// Instructs osMessageAttachements to invert how the attachment points |
||
274 | /// list should be treated (e.g. go from inclusive operation to |
||
275 | /// exclusive operation). |
||
276 | /// </summary> |
||
277 | /// <remarks> |
||
278 | /// This might be used if you want to deliver a message to one set of |
||
279 | /// attachments and a different message to everything else. With |
||
280 | /// this flag, you only need to build one explicit list for both calls. |
||
281 | /// </remarks> |
||
282 | public const int OS_ATTACH_MSG_INVERT_POINTS = 1; |
||
283 | |||
284 | /// <summary> |
||
285 | /// Instructs osMessageAttachments to only send the message to |
||
286 | /// attachments with a CreatorID that matches the host object CreatorID |
||
287 | /// </summary> |
||
288 | /// <remarks> |
||
289 | /// This would be used if distributed in an object vendor/updater server. |
||
290 | /// </remarks> |
||
291 | public const int OS_ATTACH_MSG_OBJECT_CREATOR = 2; |
||
292 | |||
293 | /// <summary> |
||
294 | /// Instructs osMessageAttachments to only send the message to |
||
295 | /// attachments with a CreatorID that matches the sending script CreatorID |
||
296 | /// </summary> |
||
297 | /// <remarks> |
||
298 | /// This might be used if the script is distributed independently of a |
||
299 | /// containing object. |
||
300 | /// </remarks> |
||
301 | public const int OS_ATTACH_MSG_SCRIPT_CREATOR = 4; |
||
302 | |||
303 | #endregion |
||
304 | |||
305 | public const int LAND_LEVEL = 0; |
||
306 | public const int LAND_RAISE = 1; |
||
307 | public const int LAND_LOWER = 2; |
||
308 | public const int LAND_SMOOTH = 3; |
||
309 | public const int LAND_NOISE = 4; |
||
310 | public const int LAND_REVERT = 5; |
||
311 | public const int LAND_SMALL_BRUSH = 1; |
||
312 | public const int LAND_MEDIUM_BRUSH = 2; |
||
313 | public const int LAND_LARGE_BRUSH = 3; |
||
314 | |||
315 | //Agent Dataserver |
||
316 | public const int DATA_ONLINE = 1; |
||
317 | public const int DATA_NAME = 2; |
||
318 | public const int DATA_BORN = 3; |
||
319 | public const int DATA_RATING = 4; |
||
320 | public const int DATA_SIM_POS = 5; |
||
321 | public const int DATA_SIM_STATUS = 6; |
||
322 | public const int DATA_SIM_RATING = 7; |
||
323 | public const int DATA_PAYINFO = 8; |
||
324 | public const int DATA_SIM_RELEASE = 128; |
||
325 | |||
326 | public const int ANIM_ON = 1; |
||
327 | public const int LOOP = 2; |
||
328 | public const int REVERSE = 4; |
||
329 | public const int PING_PONG = 8; |
||
330 | public const int SMOOTH = 16; |
||
331 | public const int ROTATE = 32; |
||
332 | public const int SCALE = 64; |
||
333 | public const int ALL_SIDES = -1; |
||
334 | public const int LINK_SET = -1; |
||
335 | public const int LINK_ROOT = 1; |
||
336 | public const int LINK_ALL_OTHERS = -2; |
||
337 | public const int LINK_ALL_CHILDREN = -3; |
||
338 | public const int LINK_THIS = -4; |
||
339 | public const int CHANGED_INVENTORY = 1; |
||
340 | public const int CHANGED_COLOR = 2; |
||
341 | public const int CHANGED_SHAPE = 4; |
||
342 | public const int CHANGED_SCALE = 8; |
||
343 | public const int CHANGED_TEXTURE = 16; |
||
344 | public const int CHANGED_LINK = 32; |
||
345 | public const int CHANGED_ALLOWED_DROP = 64; |
||
346 | public const int CHANGED_OWNER = 128; |
||
347 | public const int CHANGED_REGION = 256; |
||
348 | public const int CHANGED_TELEPORT = 512; |
||
349 | public const int CHANGED_REGION_RESTART = 1024; |
||
350 | public const int CHANGED_REGION_START = 1024; //LL Changed the constant from CHANGED_REGION_RESTART |
||
351 | public const int CHANGED_MEDIA = 2048; |
||
352 | public const int CHANGED_ANIMATION = 16384; |
||
353 | public const int TYPE_INVALID = 0; |
||
354 | public const int TYPE_INTEGER = 1; |
||
355 | public const int TYPE_FLOAT = 2; |
||
356 | public const int TYPE_STRING = 3; |
||
357 | public const int TYPE_KEY = 4; |
||
358 | public const int TYPE_VECTOR = 5; |
||
359 | public const int TYPE_ROTATION = 6; |
||
360 | |||
361 | //XML RPC Remote Data Channel |
||
362 | public const int REMOTE_DATA_CHANNEL = 1; |
||
363 | public const int REMOTE_DATA_REQUEST = 2; |
||
364 | public const int REMOTE_DATA_REPLY = 3; |
||
365 | |||
366 | //llHTTPRequest |
||
367 | public const int HTTP_METHOD = 0; |
||
368 | public const int HTTP_MIMETYPE = 1; |
||
369 | public const int HTTP_BODY_MAXLENGTH = 2; |
||
370 | public const int HTTP_VERIFY_CERT = 3; |
||
371 | public const int HTTP_VERBOSE_THROTTLE = 4; |
||
372 | public const int HTTP_CUSTOM_HEADER = 5; |
||
373 | public const int HTTP_PRAGMA_NO_CACHE = 6; |
||
374 | |||
375 | // llSetContentType |
||
376 | public const int CONTENT_TYPE_TEXT = 0; //text/plain |
||
377 | public const int CONTENT_TYPE_HTML = 1; //text/html |
||
378 | public const int CONTENT_TYPE_XML = 2; //application/xml |
||
379 | public const int CONTENT_TYPE_XHTML = 3; //application/xhtml+xml |
||
380 | public const int CONTENT_TYPE_ATOM = 4; //application/atom+xml |
||
381 | public const int CONTENT_TYPE_JSON = 5; //application/json |
||
382 | public const int CONTENT_TYPE_LLSD = 6; //application/llsd+xml |
||
383 | public const int CONTENT_TYPE_FORM = 7; //application/x-www-form-urlencoded |
||
384 | public const int CONTENT_TYPE_RSS = 8; //application/rss+xml |
||
385 | |||
386 | public const int PRIM_MATERIAL = 2; |
||
387 | public const int PRIM_PHYSICS = 3; |
||
388 | public const int PRIM_TEMP_ON_REZ = 4; |
||
389 | public const int PRIM_PHANTOM = 5; |
||
390 | public const int PRIM_POSITION = 6; |
||
391 | public const int PRIM_SIZE = 7; |
||
392 | public const int PRIM_ROTATION = 8; |
||
393 | public const int PRIM_TYPE = 9; |
||
394 | public const int PRIM_TEXTURE = 17; |
||
395 | public const int PRIM_COLOR = 18; |
||
396 | public const int PRIM_BUMP_SHINY = 19; |
||
397 | public const int PRIM_FULLBRIGHT = 20; |
||
398 | public const int PRIM_FLEXIBLE = 21; |
||
399 | public const int PRIM_TEXGEN = 22; |
||
400 | public const int PRIM_CAST_SHADOWS = 24; // Not implemented, here for completeness sake |
||
401 | public const int PRIM_POINT_LIGHT = 23; // Huh? |
||
402 | public const int PRIM_GLOW = 25; |
||
403 | public const int PRIM_TEXT = 26; |
||
404 | public const int PRIM_NAME = 27; |
||
405 | public const int PRIM_DESC = 28; |
||
406 | public const int PRIM_ROT_LOCAL = 29; |
||
407 | public const int PRIM_OMEGA = 32; |
||
408 | public const int PRIM_POS_LOCAL = 33; |
||
409 | public const int PRIM_LINK_TARGET = 34; |
||
410 | public const int PRIM_SLICE = 35; |
||
411 | public const int PRIM_TEXGEN_DEFAULT = 0; |
||
412 | public const int PRIM_TEXGEN_PLANAR = 1; |
||
413 | |||
414 | public const int PRIM_TYPE_BOX = 0; |
||
415 | public const int PRIM_TYPE_CYLINDER = 1; |
||
416 | public const int PRIM_TYPE_PRISM = 2; |
||
417 | public const int PRIM_TYPE_SPHERE = 3; |
||
418 | public const int PRIM_TYPE_TORUS = 4; |
||
419 | public const int PRIM_TYPE_TUBE = 5; |
||
420 | public const int PRIM_TYPE_RING = 6; |
||
421 | public const int PRIM_TYPE_SCULPT = 7; |
||
422 | |||
423 | public const int PRIM_HOLE_DEFAULT = 0; |
||
424 | public const int PRIM_HOLE_CIRCLE = 16; |
||
425 | public const int PRIM_HOLE_SQUARE = 32; |
||
426 | public const int PRIM_HOLE_TRIANGLE = 48; |
||
427 | |||
428 | public const int PRIM_MATERIAL_STONE = 0; |
||
429 | public const int PRIM_MATERIAL_METAL = 1; |
||
430 | public const int PRIM_MATERIAL_GLASS = 2; |
||
431 | public const int PRIM_MATERIAL_WOOD = 3; |
||
432 | public const int PRIM_MATERIAL_FLESH = 4; |
||
433 | public const int PRIM_MATERIAL_PLASTIC = 5; |
||
434 | public const int PRIM_MATERIAL_RUBBER = 6; |
||
435 | public const int PRIM_MATERIAL_LIGHT = 7; |
||
436 | |||
437 | public const int PRIM_SHINY_NONE = 0; |
||
438 | public const int PRIM_SHINY_LOW = 1; |
||
439 | public const int PRIM_SHINY_MEDIUM = 2; |
||
440 | public const int PRIM_SHINY_HIGH = 3; |
||
441 | public const int PRIM_BUMP_NONE = 0; |
||
442 | public const int PRIM_BUMP_BRIGHT = 1; |
||
443 | public const int PRIM_BUMP_DARK = 2; |
||
444 | public const int PRIM_BUMP_WOOD = 3; |
||
445 | public const int PRIM_BUMP_BARK = 4; |
||
446 | public const int PRIM_BUMP_BRICKS = 5; |
||
447 | public const int PRIM_BUMP_CHECKER = 6; |
||
448 | public const int PRIM_BUMP_CONCRETE = 7; |
||
449 | public const int PRIM_BUMP_TILE = 8; |
||
450 | public const int PRIM_BUMP_STONE = 9; |
||
451 | public const int PRIM_BUMP_DISKS = 10; |
||
452 | public const int PRIM_BUMP_GRAVEL = 11; |
||
453 | public const int PRIM_BUMP_BLOBS = 12; |
||
454 | public const int PRIM_BUMP_SIDING = 13; |
||
455 | public const int PRIM_BUMP_LARGETILE = 14; |
||
456 | public const int PRIM_BUMP_STUCCO = 15; |
||
457 | public const int PRIM_BUMP_SUCTION = 16; |
||
458 | public const int PRIM_BUMP_WEAVE = 17; |
||
459 | |||
460 | public const int PRIM_SCULPT_TYPE_SPHERE = 1; |
||
461 | public const int PRIM_SCULPT_TYPE_TORUS = 2; |
||
462 | public const int PRIM_SCULPT_TYPE_PLANE = 3; |
||
463 | public const int PRIM_SCULPT_TYPE_CYLINDER = 4; |
||
464 | public const int PRIM_SCULPT_FLAG_INVERT = 64; |
||
465 | public const int PRIM_SCULPT_FLAG_MIRROR = 128; |
||
466 | |||
467 | public const int PROFILE_NONE = 0; |
||
468 | public const int PROFILE_SCRIPT_MEMORY = 1; |
||
469 | |||
470 | public const int MASK_BASE = 0; |
||
471 | public const int MASK_OWNER = 1; |
||
472 | public const int MASK_GROUP = 2; |
||
473 | public const int MASK_EVERYONE = 3; |
||
474 | public const int MASK_NEXT = 4; |
||
475 | |||
476 | public const int PERM_TRANSFER = 8192; |
||
477 | public const int PERM_MODIFY = 16384; |
||
478 | public const int PERM_COPY = 32768; |
||
479 | public const int PERM_MOVE = 524288; |
||
480 | public const int PERM_ALL = 2147483647; |
||
481 | |||
482 | public const int PARCEL_MEDIA_COMMAND_STOP = 0; |
||
483 | public const int PARCEL_MEDIA_COMMAND_PAUSE = 1; |
||
484 | public const int PARCEL_MEDIA_COMMAND_PLAY = 2; |
||
485 | public const int PARCEL_MEDIA_COMMAND_LOOP = 3; |
||
486 | public const int PARCEL_MEDIA_COMMAND_TEXTURE = 4; |
||
487 | public const int PARCEL_MEDIA_COMMAND_URL = 5; |
||
488 | public const int PARCEL_MEDIA_COMMAND_TIME = 6; |
||
489 | public const int PARCEL_MEDIA_COMMAND_AGENT = 7; |
||
490 | public const int PARCEL_MEDIA_COMMAND_UNLOAD = 8; |
||
491 | public const int PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9; |
||
492 | public const int PARCEL_MEDIA_COMMAND_TYPE = 10; |
||
493 | public const int PARCEL_MEDIA_COMMAND_SIZE = 11; |
||
494 | public const int PARCEL_MEDIA_COMMAND_DESC = 12; |
||
495 | |||
496 | public const int PARCEL_FLAG_ALLOW_FLY = 0x1; // parcel allows flying |
||
497 | public const int PARCEL_FLAG_ALLOW_SCRIPTS = 0x2; // parcel allows outside scripts |
||
498 | public const int PARCEL_FLAG_ALLOW_LANDMARK = 0x8; // parcel allows landmarks to be created |
||
499 | public const int PARCEL_FLAG_ALLOW_TERRAFORM = 0x10; // parcel allows anyone to terraform the land |
||
500 | public const int PARCEL_FLAG_ALLOW_DAMAGE = 0x20; // parcel allows damage |
||
501 | public const int PARCEL_FLAG_ALLOW_CREATE_OBJECTS = 0x40; // parcel allows anyone to create objects |
||
502 | public const int PARCEL_FLAG_USE_ACCESS_GROUP = 0x100; // parcel limits access to a group |
||
503 | public const int PARCEL_FLAG_USE_ACCESS_LIST = 0x200; // parcel limits access to a list of residents |
||
504 | public const int PARCEL_FLAG_USE_BAN_LIST = 0x400; // parcel uses a ban list, including restricting access based on payment info |
||
505 | public const int PARCEL_FLAG_USE_LAND_PASS_LIST = 0x800; // parcel allows passes to be purchased |
||
506 | public const int PARCEL_FLAG_LOCAL_SOUND_ONLY = 0x8000; // parcel restricts spatialized sound to the parcel |
||
507 | public const int PARCEL_FLAG_RESTRICT_PUSHOBJECT = 0x200000; // parcel restricts llPushObject |
||
508 | public const int PARCEL_FLAG_ALLOW_GROUP_SCRIPTS = 0x2000000; // parcel allows scripts owned by group |
||
509 | public const int PARCEL_FLAG_ALLOW_CREATE_GROUP_OBJECTS = 0x4000000; // parcel allows group object creation |
||
510 | public const int PARCEL_FLAG_ALLOW_ALL_OBJECT_ENTRY = 0x8000000; // parcel allows objects owned by any user to enter |
||
511 | public const int PARCEL_FLAG_ALLOW_GROUP_OBJECT_ENTRY = 0x10000000; // parcel allows with the same group to enter |
||
512 | |||
513 | public const int REGION_FLAG_ALLOW_DAMAGE = 0x1; // region is entirely damage enabled |
||
514 | public const int REGION_FLAG_FIXED_SUN = 0x10; // region has a fixed sun position |
||
515 | public const int REGION_FLAG_BLOCK_TERRAFORM = 0x40; // region terraforming disabled |
||
516 | public const int REGION_FLAG_SANDBOX = 0x100; // region is a sandbox |
||
517 | public const int REGION_FLAG_DISABLE_COLLISIONS = 0x1000; // region has disabled collisions |
||
518 | public const int REGION_FLAG_DISABLE_PHYSICS = 0x4000; // region has disabled physics |
||
519 | public const int REGION_FLAG_BLOCK_FLY = 0x80000; // region blocks flying |
||
520 | public const int REGION_FLAG_ALLOW_DIRECT_TELEPORT = 0x100000; // region allows direct teleports |
||
521 | public const int REGION_FLAG_RESTRICT_PUSHOBJECT = 0x400000; // region restricts llPushObject |
||
522 | |||
523 | //llManageEstateAccess |
||
524 | public const int ESTATE_ACCESS_ALLOWED_AGENT_ADD = 0; |
||
525 | public const int ESTATE_ACCESS_ALLOWED_AGENT_REMOVE = 1; |
||
526 | public const int ESTATE_ACCESS_ALLOWED_GROUP_ADD = 2; |
||
527 | public const int ESTATE_ACCESS_ALLOWED_GROUP_REMOVE = 3; |
||
528 | public const int ESTATE_ACCESS_BANNED_AGENT_ADD = 4; |
||
529 | public const int ESTATE_ACCESS_BANNED_AGENT_REMOVE = 5; |
||
530 | |||
531 | public static readonly LSLInteger PAY_HIDE = new LSLInteger(-1); |
||
532 | public static readonly LSLInteger PAY_DEFAULT = new LSLInteger(-2); |
||
533 | |||
534 | public const string NULL_KEY = "00000000-0000-0000-0000-000000000000"; |
||
535 | public const string EOF = "\n\n\n"; |
||
536 | public const double PI = 3.14159274f; |
||
537 | public const double TWO_PI = 6.28318548f; |
||
538 | public const double PI_BY_TWO = 1.57079637f; |
||
539 | public const double DEG_TO_RAD = 0.01745329238f; |
||
540 | public const double RAD_TO_DEG = 57.29578f; |
||
541 | public const double SQRT2 = 1.414213538f; |
||
542 | public const int STRING_TRIM_HEAD = 1; |
||
543 | public const int STRING_TRIM_TAIL = 2; |
||
544 | public const int STRING_TRIM = 3; |
||
545 | public const int LIST_STAT_RANGE = 0; |
||
546 | public const int LIST_STAT_MIN = 1; |
||
547 | public const int LIST_STAT_MAX = 2; |
||
548 | public const int LIST_STAT_MEAN = 3; |
||
549 | public const int LIST_STAT_MEDIAN = 4; |
||
550 | public const int LIST_STAT_STD_DEV = 5; |
||
551 | public const int LIST_STAT_SUM = 6; |
||
552 | public const int LIST_STAT_SUM_SQUARES = 7; |
||
553 | public const int LIST_STAT_NUM_COUNT = 8; |
||
554 | public const int LIST_STAT_GEOMETRIC_MEAN = 9; |
||
555 | public const int LIST_STAT_HARMONIC_MEAN = 100; |
||
556 | |||
557 | //ParcelPrim Categories |
||
558 | public const int PARCEL_COUNT_TOTAL = 0; |
||
559 | public const int PARCEL_COUNT_OWNER = 1; |
||
560 | public const int PARCEL_COUNT_GROUP = 2; |
||
561 | public const int PARCEL_COUNT_OTHER = 3; |
||
562 | public const int PARCEL_COUNT_SELECTED = 4; |
||
563 | public const int PARCEL_COUNT_TEMP = 5; |
||
564 | |||
565 | public const int DEBUG_CHANNEL = 0x7FFFFFFF; |
||
566 | public const int PUBLIC_CHANNEL = 0x00000000; |
||
567 | |||
568 | // Constants for llGetObjectDetails |
||
569 | public const int OBJECT_UNKNOWN_DETAIL = -1; |
||
570 | public const int OBJECT_NAME = 1; |
||
571 | public const int OBJECT_DESC = 2; |
||
572 | public const int OBJECT_POS = 3; |
||
573 | public const int OBJECT_ROT = 4; |
||
574 | public const int OBJECT_VELOCITY = 5; |
||
575 | public const int OBJECT_OWNER = 6; |
||
576 | public const int OBJECT_GROUP = 7; |
||
577 | public const int OBJECT_CREATOR = 8; |
||
578 | public const int OBJECT_RUNNING_SCRIPT_COUNT = 9; |
||
579 | public const int OBJECT_TOTAL_SCRIPT_COUNT = 10; |
||
580 | public const int OBJECT_SCRIPT_MEMORY = 11; |
||
581 | public const int OBJECT_SCRIPT_TIME = 12; |
||
582 | public const int OBJECT_PRIM_EQUIVALENCE = 13; |
||
583 | public const int OBJECT_SERVER_COST = 14; |
||
584 | public const int OBJECT_STREAMING_COST = 15; |
||
585 | public const int OBJECT_PHYSICS_COST = 16; |
||
586 | public const int OBJECT_CHARACTER_TIME = 17; |
||
587 | public const int OBJECT_ROOT = 18; |
||
588 | public const int OBJECT_ATTACHED_POINT = 19; |
||
589 | public const int OBJECT_PATHFINDING_TYPE = 20; |
||
590 | public const int OBJECT_PHYSICS = 21; |
||
591 | public const int OBJECT_PHANTOM = 22; |
||
592 | public const int OBJECT_TEMP_ON_REZ = 23; |
||
593 | |||
594 | // Pathfinding types |
||
595 | public const int OPT_OTHER = -1; |
||
596 | public const int OPT_LEGACY_LINKSET = 0; |
||
597 | public const int OPT_AVATAR = 1; |
||
598 | public const int OPT_CHARACTER = 2; |
||
599 | public const int OPT_WALKABLE = 3; |
||
600 | public const int OPT_STATIC_OBSTACLE = 4; |
||
601 | public const int OPT_MATERIAL_VOLUME = 5; |
||
602 | public const int OPT_EXCLUSION_VOLUME = 6; |
||
603 | |||
604 | // for llGetAgentList |
||
605 | public const int AGENT_LIST_PARCEL = 1; |
||
606 | public const int AGENT_LIST_PARCEL_OWNER = 2; |
||
607 | public const int AGENT_LIST_REGION = 4; |
||
608 | |||
609 | // Can not be public const? |
||
610 | public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0); |
||
611 | public static readonly rotation ZERO_ROTATION = new rotation(0.0, 0.0, 0.0, 1.0); |
||
612 | |||
613 | // constants for llSetCameraParams |
||
614 | public const int CAMERA_PITCH = 0; |
||
615 | public const int CAMERA_FOCUS_OFFSET = 1; |
||
616 | public const int CAMERA_FOCUS_OFFSET_X = 2; |
||
617 | public const int CAMERA_FOCUS_OFFSET_Y = 3; |
||
618 | public const int CAMERA_FOCUS_OFFSET_Z = 4; |
||
619 | public const int CAMERA_POSITION_LAG = 5; |
||
620 | public const int CAMERA_FOCUS_LAG = 6; |
||
621 | public const int CAMERA_DISTANCE = 7; |
||
622 | public const int CAMERA_BEHINDNESS_ANGLE = 8; |
||
623 | public const int CAMERA_BEHINDNESS_LAG = 9; |
||
624 | public const int CAMERA_POSITION_THRESHOLD = 10; |
||
625 | public const int CAMERA_FOCUS_THRESHOLD = 11; |
||
626 | public const int CAMERA_ACTIVE = 12; |
||
627 | public const int CAMERA_POSITION = 13; |
||
628 | public const int CAMERA_POSITION_X = 14; |
||
629 | public const int CAMERA_POSITION_Y = 15; |
||
630 | public const int CAMERA_POSITION_Z = 16; |
||
631 | public const int CAMERA_FOCUS = 17; |
||
632 | public const int CAMERA_FOCUS_X = 18; |
||
633 | public const int CAMERA_FOCUS_Y = 19; |
||
634 | public const int CAMERA_FOCUS_Z = 20; |
||
635 | public const int CAMERA_POSITION_LOCKED = 21; |
||
636 | public const int CAMERA_FOCUS_LOCKED = 22; |
||
637 | |||
638 | // constants for llGetParcelDetails |
||
639 | public const int PARCEL_DETAILS_NAME = 0; |
||
640 | public const int PARCEL_DETAILS_DESC = 1; |
||
641 | public const int PARCEL_DETAILS_OWNER = 2; |
||
642 | public const int PARCEL_DETAILS_GROUP = 3; |
||
643 | public const int PARCEL_DETAILS_AREA = 4; |
||
644 | public const int PARCEL_DETAILS_ID = 5; |
||
645 | public const int PARCEL_DETAILS_SEE_AVATARS = 6; // not implemented |
||
646 | |||
647 | //osSetParcelDetails |
||
648 | public const int PARCEL_DETAILS_CLAIMDATE = 10; |
||
649 | |||
650 | // constants for llSetClickAction |
||
651 | public const int CLICK_ACTION_NONE = 0; |
||
652 | public const int CLICK_ACTION_TOUCH = 0; |
||
653 | public const int CLICK_ACTION_SIT = 1; |
||
654 | public const int CLICK_ACTION_BUY = 2; |
||
655 | public const int CLICK_ACTION_PAY = 3; |
||
656 | public const int CLICK_ACTION_OPEN = 4; |
||
657 | public const int CLICK_ACTION_PLAY = 5; |
||
658 | public const int CLICK_ACTION_OPEN_MEDIA = 6; |
||
659 | public const int CLICK_ACTION_ZOOM = 7; |
||
660 | |||
661 | // constants for the llDetectedTouch* functions |
||
662 | public const int TOUCH_INVALID_FACE = -1; |
||
663 | public static readonly vector TOUCH_INVALID_TEXCOORD = new vector(-1.0, -1.0, 0.0); |
||
664 | public static readonly vector TOUCH_INVALID_VECTOR = ZERO_VECTOR; |
||
665 | |||
666 | // constants for llGetPrimMediaParams/llSetPrimMediaParams |
||
667 | public const int PRIM_MEDIA_ALT_IMAGE_ENABLE = 0; |
||
668 | public const int PRIM_MEDIA_CONTROLS = 1; |
||
669 | public const int PRIM_MEDIA_CURRENT_URL = 2; |
||
670 | public const int PRIM_MEDIA_HOME_URL = 3; |
||
671 | public const int PRIM_MEDIA_AUTO_LOOP = 4; |
||
672 | public const int PRIM_MEDIA_AUTO_PLAY = 5; |
||
673 | public const int PRIM_MEDIA_AUTO_SCALE = 6; |
||
674 | public const int PRIM_MEDIA_AUTO_ZOOM = 7; |
||
675 | public const int PRIM_MEDIA_FIRST_CLICK_INTERACT = 8; |
||
676 | public const int PRIM_MEDIA_WIDTH_PIXELS = 9; |
||
677 | public const int PRIM_MEDIA_HEIGHT_PIXELS = 10; |
||
678 | public const int PRIM_MEDIA_WHITELIST_ENABLE = 11; |
||
679 | public const int PRIM_MEDIA_WHITELIST = 12; |
||
680 | public const int PRIM_MEDIA_PERMS_INTERACT = 13; |
||
681 | public const int PRIM_MEDIA_PERMS_CONTROL = 14; |
||
682 | |||
683 | public const int PRIM_MEDIA_CONTROLS_STANDARD = 0; |
||
684 | public const int PRIM_MEDIA_CONTROLS_MINI = 1; |
||
685 | |||
686 | public const int PRIM_MEDIA_PERM_NONE = 0; |
||
687 | public const int PRIM_MEDIA_PERM_OWNER = 1; |
||
688 | public const int PRIM_MEDIA_PERM_GROUP = 2; |
||
689 | public const int PRIM_MEDIA_PERM_ANYONE = 4; |
||
690 | |||
691 | public const int PRIM_PHYSICS_SHAPE_TYPE = 30; |
||
692 | public const int PRIM_PHYSICS_SHAPE_PRIM = 0; |
||
693 | public const int PRIM_PHYSICS_SHAPE_CONVEX = 2; |
||
694 | public const int PRIM_PHYSICS_SHAPE_NONE = 1; |
||
695 | |||
696 | public const int PRIM_PHYSICS_MATERIAL = 31; |
||
697 | public const int DENSITY = 1; |
||
698 | public const int FRICTION = 2; |
||
699 | public const int RESTITUTION = 4; |
||
700 | public const int GRAVITY_MULTIPLIER = 8; |
||
701 | |||
702 | // extra constants for llSetPrimMediaParams |
||
703 | public static readonly LSLInteger LSL_STATUS_OK = new LSLInteger(0); |
||
704 | public static readonly LSLInteger LSL_STATUS_MALFORMED_PARAMS = new LSLInteger(1000); |
||
705 | public static readonly LSLInteger LSL_STATUS_TYPE_MISMATCH = new LSLInteger(1001); |
||
706 | public static readonly LSLInteger LSL_STATUS_BOUNDS_ERROR = new LSLInteger(1002); |
||
707 | public static readonly LSLInteger LSL_STATUS_NOT_FOUND = new LSLInteger(1003); |
||
708 | public static readonly LSLInteger LSL_STATUS_NOT_SUPPORTED = new LSLInteger(1004); |
||
709 | public static readonly LSLInteger LSL_STATUS_INTERNAL_ERROR = new LSLInteger(1999); |
||
710 | public static readonly LSLInteger LSL_STATUS_WHITELIST_FAILED = new LSLInteger(2001); |
||
711 | |||
712 | // Constants for default textures |
||
713 | public const string TEXTURE_BLANK = "5748decc-f629-461c-9a36-a35a221fe21f"; |
||
714 | public const string TEXTURE_DEFAULT = "89556747-24cb-43ed-920b-47caed15465f"; |
||
715 | public const string TEXTURE_PLYWOOD = "89556747-24cb-43ed-920b-47caed15465f"; |
||
716 | public const string TEXTURE_TRANSPARENT = "8dcd4a48-2d37-4909-9f78-f7a9eb4ef903"; |
||
717 | public const string TEXTURE_MEDIA = "8b5fec65-8d8d-9dc5-cda8-8fdf2716e361"; |
||
718 | |||
719 | // Constants for osGetRegionStats |
||
720 | public const int STATS_TIME_DILATION = 0; |
||
721 | public const int STATS_SIM_FPS = 1; |
||
722 | public const int STATS_PHYSICS_FPS = 2; |
||
723 | public const int STATS_AGENT_UPDATES = 3; |
||
724 | public const int STATS_ROOT_AGENTS = 4; |
||
725 | public const int STATS_CHILD_AGENTS = 5; |
||
726 | public const int STATS_TOTAL_PRIMS = 6; |
||
727 | public const int STATS_ACTIVE_PRIMS = 7; |
||
728 | public const int STATS_FRAME_MS = 8; |
||
729 | public const int STATS_NET_MS = 9; |
||
730 | public const int STATS_PHYSICS_MS = 10; |
||
731 | public const int STATS_IMAGE_MS = 11; |
||
732 | public const int STATS_OTHER_MS = 12; |
||
733 | public const int STATS_IN_PACKETS_PER_SECOND = 13; |
||
734 | public const int STATS_OUT_PACKETS_PER_SECOND = 14; |
||
735 | public const int STATS_UNACKED_BYTES = 15; |
||
736 | public const int STATS_AGENT_MS = 16; |
||
737 | public const int STATS_PENDING_DOWNLOADS = 17; |
||
738 | public const int STATS_PENDING_UPLOADS = 18; |
||
739 | public const int STATS_ACTIVE_SCRIPTS = 19; |
||
740 | public const int STATS_SCRIPT_LPS = 20; |
||
741 | |||
742 | // Constants for osNpc* functions |
||
743 | public const int OS_NPC_FLY = 0; |
||
744 | public const int OS_NPC_NO_FLY = 1; |
||
745 | public const int OS_NPC_LAND_AT_TARGET = 2; |
||
746 | public const int OS_NPC_RUNNING = 4; |
||
747 | |||
748 | public const int OS_NPC_SIT_NOW = 0; |
||
749 | |||
750 | public const int OS_NPC_CREATOR_OWNED = 0x1; |
||
751 | public const int OS_NPC_NOT_OWNED = 0x2; |
||
752 | public const int OS_NPC_SENSE_AS_AGENT = 0x4; |
||
753 | |||
754 | public const string URL_REQUEST_GRANTED = "URL_REQUEST_GRANTED"; |
||
755 | public const string URL_REQUEST_DENIED = "URL_REQUEST_DENIED"; |
||
756 | |||
757 | public static readonly LSLInteger RC_REJECT_TYPES = 0; |
||
758 | public static readonly LSLInteger RC_DETECT_PHANTOM = 1; |
||
759 | public static readonly LSLInteger RC_DATA_FLAGS = 2; |
||
760 | public static readonly LSLInteger RC_MAX_HITS = 3; |
||
761 | |||
762 | public static readonly LSLInteger RC_REJECT_AGENTS = 1; |
||
763 | public static readonly LSLInteger RC_REJECT_PHYSICAL = 2; |
||
764 | public static readonly LSLInteger RC_REJECT_NONPHYSICAL = 4; |
||
765 | public static readonly LSLInteger RC_REJECT_LAND = 8; |
||
766 | |||
767 | public static readonly LSLInteger RC_GET_NORMAL = 1; |
||
768 | public static readonly LSLInteger RC_GET_ROOT_KEY = 2; |
||
769 | public static readonly LSLInteger RC_GET_LINK_NUM = 4; |
||
770 | |||
771 | public static readonly LSLInteger RCERR_UNKNOWN = -1; |
||
772 | public static readonly LSLInteger RCERR_SIM_PERF_LOW = -2; |
||
773 | public static readonly LSLInteger RCERR_CAST_TIME_EXCEEDED = 3; |
||
774 | |||
775 | public const int KFM_MODE = 1; |
||
776 | public const int KFM_LOOP = 1; |
||
777 | public const int KFM_REVERSE = 3; |
||
778 | public const int KFM_FORWARD = 0; |
||
779 | public const int KFM_PING_PONG = 2; |
||
780 | public const int KFM_DATA = 2; |
||
781 | public const int KFM_TRANSLATION = 2; |
||
782 | public const int KFM_ROTATION = 1; |
||
783 | public const int KFM_COMMAND = 0; |
||
784 | public const int KFM_CMD_PLAY = 0; |
||
785 | public const int KFM_CMD_STOP = 1; |
||
786 | public const int KFM_CMD_PAUSE = 2; |
||
787 | |||
788 | /// <summary> |
||
789 | /// process name parameter as regex |
||
790 | /// </summary> |
||
791 | public const int OS_LISTEN_REGEX_NAME = 0x1; |
||
792 | |||
793 | /// <summary> |
||
794 | /// process message parameter as regex |
||
795 | /// </summary> |
||
796 | public const int OS_LISTEN_REGEX_MESSAGE = 0x2; |
||
797 | } |
||
798 | } |