LSL_Constants.cs 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  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. using System;
  28. using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
  29. using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
  30. using LSLInteger = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
  31. namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
  32. {
  33. public partial class ScriptBaseClass
  34. {
  35. // LSL CONSTANTS
  36. public static readonly LSLInteger TRUE = new LSLInteger(1);
  37. public static readonly LSLInteger FALSE = new LSLInteger(0);
  38. public const int STATUS_PHYSICS = 1;
  39. public const int STATUS_ROTATE_X = 2;
  40. public const int STATUS_ROTATE_Y = 4;
  41. public const int STATUS_ROTATE_Z = 8;
  42. public const int STATUS_PHANTOM = 16;
  43. public const int STATUS_SANDBOX = 32;
  44. public const int STATUS_BLOCK_GRAB = 64;
  45. public const int STATUS_DIE_AT_EDGE = 128;
  46. public const int STATUS_RETURN_AT_EDGE = 256;
  47. public const int STATUS_CAST_SHADOWS = 512;
  48. public const int AGENT = 1;
  49. public const int ACTIVE = 2;
  50. public const int PASSIVE = 4;
  51. public const int SCRIPTED = 8;
  52. public const int CONTROL_FWD = 1;
  53. public const int CONTROL_BACK = 2;
  54. public const int CONTROL_LEFT = 4;
  55. public const int CONTROL_RIGHT = 8;
  56. public const int CONTROL_UP = 16;
  57. public const int CONTROL_DOWN = 32;
  58. public const int CONTROL_ROT_LEFT = 256;
  59. public const int CONTROL_ROT_RIGHT = 512;
  60. public const int CONTROL_LBUTTON = 268435456;
  61. public const int CONTROL_ML_LBUTTON = 1073741824;
  62. //Permissions
  63. public const int PERMISSION_DEBIT = 2;
  64. public const int PERMISSION_TAKE_CONTROLS = 4;
  65. public const int PERMISSION_REMAP_CONTROLS = 8;
  66. public const int PERMISSION_TRIGGER_ANIMATION = 16;
  67. public const int PERMISSION_ATTACH = 32;
  68. public const int PERMISSION_RELEASE_OWNERSHIP = 64;
  69. public const int PERMISSION_CHANGE_LINKS = 128;
  70. public const int PERMISSION_CHANGE_JOINTS = 256;
  71. public const int PERMISSION_CHANGE_PERMISSIONS = 512;
  72. public const int PERMISSION_TRACK_CAMERA = 1024;
  73. public const int PERMISSION_CONTROL_CAMERA = 2048;
  74. public const int AGENT_FLYING = 1;
  75. public const int AGENT_ATTACHMENTS = 2;
  76. public const int AGENT_SCRIPTED = 4;
  77. public const int AGENT_MOUSELOOK = 8;
  78. public const int AGENT_SITTING = 16;
  79. public const int AGENT_ON_OBJECT = 32;
  80. public const int AGENT_AWAY = 64;
  81. public const int AGENT_WALKING = 128;
  82. public const int AGENT_IN_AIR = 256;
  83. public const int AGENT_TYPING = 512;
  84. public const int AGENT_CROUCHING = 1024;
  85. public const int AGENT_BUSY = 2048;
  86. public const int AGENT_ALWAYS_RUN = 4096;
  87. //Particle Systems
  88. public const int PSYS_PART_INTERP_COLOR_MASK = 1;
  89. public const int PSYS_PART_INTERP_SCALE_MASK = 2;
  90. public const int PSYS_PART_BOUNCE_MASK = 4;
  91. public const int PSYS_PART_WIND_MASK = 8;
  92. public const int PSYS_PART_FOLLOW_SRC_MASK = 16;
  93. public const int PSYS_PART_FOLLOW_VELOCITY_MASK = 32;
  94. public const int PSYS_PART_TARGET_POS_MASK = 64;
  95. public const int PSYS_PART_TARGET_LINEAR_MASK = 128;
  96. public const int PSYS_PART_EMISSIVE_MASK = 256;
  97. public const int PSYS_PART_FLAGS = 0;
  98. public const int PSYS_PART_START_COLOR = 1;
  99. public const int PSYS_PART_START_ALPHA = 2;
  100. public const int PSYS_PART_END_COLOR = 3;
  101. public const int PSYS_PART_END_ALPHA = 4;
  102. public const int PSYS_PART_START_SCALE = 5;
  103. public const int PSYS_PART_END_SCALE = 6;
  104. public const int PSYS_PART_MAX_AGE = 7;
  105. public const int PSYS_SRC_ACCEL = 8;
  106. public const int PSYS_SRC_PATTERN = 9;
  107. public const int PSYS_SRC_INNERANGLE = 10;
  108. public const int PSYS_SRC_OUTERANGLE = 11;
  109. public const int PSYS_SRC_TEXTURE = 12;
  110. public const int PSYS_SRC_BURST_RATE = 13;
  111. public const int PSYS_SRC_BURST_PART_COUNT = 15;
  112. public const int PSYS_SRC_BURST_RADIUS = 16;
  113. public const int PSYS_SRC_BURST_SPEED_MIN = 17;
  114. public const int PSYS_SRC_BURST_SPEED_MAX = 18;
  115. public const int PSYS_SRC_MAX_AGE = 19;
  116. public const int PSYS_SRC_TARGET_KEY = 20;
  117. public const int PSYS_SRC_OMEGA = 21;
  118. public const int PSYS_SRC_ANGLE_BEGIN = 22;
  119. public const int PSYS_SRC_ANGLE_END = 23;
  120. public const int PSYS_SRC_PATTERN_DROP = 1;
  121. public const int PSYS_SRC_PATTERN_EXPLODE = 2;
  122. public const int PSYS_SRC_PATTERN_ANGLE = 4;
  123. public const int PSYS_SRC_PATTERN_ANGLE_CONE = 8;
  124. public const int PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY = 16;
  125. public const int VEHICLE_TYPE_NONE = 0;
  126. public const int VEHICLE_TYPE_SLED = 1;
  127. public const int VEHICLE_TYPE_CAR = 2;
  128. public const int VEHICLE_TYPE_BOAT = 3;
  129. public const int VEHICLE_TYPE_AIRPLANE = 4;
  130. public const int VEHICLE_TYPE_BALLOON = 5;
  131. public const int VEHICLE_LINEAR_FRICTION_TIMESCALE = 16;
  132. public const int VEHICLE_ANGULAR_FRICTION_TIMESCALE = 17;
  133. public const int VEHICLE_LINEAR_MOTOR_DIRECTION = 18;
  134. public const int VEHICLE_LINEAR_MOTOR_OFFSET = 20;
  135. public const int VEHICLE_ANGULAR_MOTOR_DIRECTION = 19;
  136. public const int VEHICLE_HOVER_HEIGHT = 24;
  137. public const int VEHICLE_HOVER_EFFICIENCY = 25;
  138. public const int VEHICLE_HOVER_TIMESCALE = 26;
  139. public const int VEHICLE_BUOYANCY = 27;
  140. public const int VEHICLE_LINEAR_DEFLECTION_EFFICIENCY = 28;
  141. public const int VEHICLE_LINEAR_DEFLECTION_TIMESCALE = 29;
  142. public const int VEHICLE_LINEAR_MOTOR_TIMESCALE = 30;
  143. public const int VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE = 31;
  144. public const int VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY = 32;
  145. public const int VEHICLE_ANGULAR_DEFLECTION_TIMESCALE = 33;
  146. public const int VEHICLE_ANGULAR_MOTOR_TIMESCALE = 34;
  147. public const int VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE = 35;
  148. public const int VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY = 36;
  149. public const int VEHICLE_VERTICAL_ATTRACTION_TIMESCALE = 37;
  150. public const int VEHICLE_BANKING_EFFICIENCY = 38;
  151. public const int VEHICLE_BANKING_MIX = 39;
  152. public const int VEHICLE_BANKING_TIMESCALE = 40;
  153. public const int VEHICLE_REFERENCE_FRAME = 44;
  154. public const int VEHICLE_FLAG_NO_DEFLECTION_UP = 1;
  155. public const int VEHICLE_FLAG_LIMIT_ROLL_ONLY = 2;
  156. public const int VEHICLE_FLAG_HOVER_WATER_ONLY = 4;
  157. public const int VEHICLE_FLAG_HOVER_TERRAIN_ONLY = 8;
  158. public const int VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT = 16;
  159. public const int VEHICLE_FLAG_HOVER_UP_ONLY = 32;
  160. public const int VEHICLE_FLAG_LIMIT_MOTOR_UP = 64;
  161. public const int VEHICLE_FLAG_MOUSELOOK_STEER = 128;
  162. public const int VEHICLE_FLAG_MOUSELOOK_BANK = 256;
  163. public const int VEHICLE_FLAG_CAMERA_DECOUPLED = 512;
  164. public const int INVENTORY_ALL = -1;
  165. public const int INVENTORY_NONE = -1;
  166. public const int INVENTORY_TEXTURE = 0;
  167. public const int INVENTORY_SOUND = 1;
  168. public const int INVENTORY_LANDMARK = 3;
  169. public const int INVENTORY_CLOTHING = 5;
  170. public const int INVENTORY_OBJECT = 6;
  171. public const int INVENTORY_NOTECARD = 7;
  172. public const int INVENTORY_SCRIPT = 10;
  173. public const int INVENTORY_BODYPART = 13;
  174. public const int INVENTORY_ANIMATION = 20;
  175. public const int INVENTORY_GESTURE = 21;
  176. public const int ATTACH_CHEST = 1;
  177. public const int ATTACH_HEAD = 2;
  178. public const int ATTACH_LSHOULDER = 3;
  179. public const int ATTACH_RSHOULDER = 4;
  180. public const int ATTACH_LHAND = 5;
  181. public const int ATTACH_RHAND = 6;
  182. public const int ATTACH_LFOOT = 7;
  183. public const int ATTACH_RFOOT = 8;
  184. public const int ATTACH_BACK = 9;
  185. public const int ATTACH_PELVIS = 10;
  186. public const int ATTACH_MOUTH = 11;
  187. public const int ATTACH_CHIN = 12;
  188. public const int ATTACH_LEAR = 13;
  189. public const int ATTACH_REAR = 14;
  190. public const int ATTACH_LEYE = 15;
  191. public const int ATTACH_REYE = 16;
  192. public const int ATTACH_NOSE = 17;
  193. public const int ATTACH_RUARM = 18;
  194. public const int ATTACH_RLARM = 19;
  195. public const int ATTACH_LUARM = 20;
  196. public const int ATTACH_LLARM = 21;
  197. public const int ATTACH_RHIP = 22;
  198. public const int ATTACH_RULEG = 23;
  199. public const int ATTACH_RLLEG = 24;
  200. public const int ATTACH_LHIP = 25;
  201. public const int ATTACH_LULEG = 26;
  202. public const int ATTACH_LLLEG = 27;
  203. public const int ATTACH_BELLY = 28;
  204. public const int ATTACH_RPEC = 29;
  205. public const int ATTACH_LPEC = 30;
  206. public const int ATTACH_HUD_CENTER_2 = 31;
  207. public const int ATTACH_HUD_TOP_RIGHT = 32;
  208. public const int ATTACH_HUD_TOP_CENTER = 33;
  209. public const int ATTACH_HUD_TOP_LEFT = 34;
  210. public const int ATTACH_HUD_CENTER_1 = 35;
  211. public const int ATTACH_HUD_BOTTOM_LEFT = 36;
  212. public const int ATTACH_HUD_BOTTOM = 37;
  213. public const int ATTACH_HUD_BOTTOM_RIGHT = 38;
  214. public const int LAND_LEVEL = 0;
  215. public const int LAND_RAISE = 1;
  216. public const int LAND_LOWER = 2;
  217. public const int LAND_SMOOTH = 3;
  218. public const int LAND_NOISE = 4;
  219. public const int LAND_REVERT = 5;
  220. public const int LAND_SMALL_BRUSH = 1;
  221. public const int LAND_MEDIUM_BRUSH = 2;
  222. public const int LAND_LARGE_BRUSH = 3;
  223. //Agent Dataserver
  224. public const int DATA_ONLINE = 1;
  225. public const int DATA_NAME = 2;
  226. public const int DATA_BORN = 3;
  227. public const int DATA_RATING = 4;
  228. public const int DATA_SIM_POS = 5;
  229. public const int DATA_SIM_STATUS = 6;
  230. public const int DATA_SIM_RATING = 7;
  231. public const int DATA_PAYINFO = 8;
  232. public const int DATA_SIM_RELEASE = 128;
  233. public const int ANIM_ON = 1;
  234. public const int LOOP = 2;
  235. public const int REVERSE = 4;
  236. public const int PING_PONG = 8;
  237. public const int SMOOTH = 16;
  238. public const int ROTATE = 32;
  239. public const int SCALE = 64;
  240. public const int ALL_SIDES = -1;
  241. public const int LINK_SET = -1;
  242. public const int LINK_ROOT = 1;
  243. public const int LINK_ALL_OTHERS = -2;
  244. public const int LINK_ALL_CHILDREN = -3;
  245. public const int LINK_THIS = -4;
  246. public const int CHANGED_INVENTORY = 1;
  247. public const int CHANGED_COLOR = 2;
  248. public const int CHANGED_SHAPE = 4;
  249. public const int CHANGED_SCALE = 8;
  250. public const int CHANGED_TEXTURE = 16;
  251. public const int CHANGED_LINK = 32;
  252. public const int CHANGED_ALLOWED_DROP = 64;
  253. public const int CHANGED_OWNER = 128;
  254. public const int CHANGED_REGION_RESTART = 256;
  255. public const int CHANGED_REGION = 512;
  256. public const int CHANGED_TELEPORT = 1024;
  257. public const int CHANGED_ANIMATION = 16384;
  258. public const int TYPE_INVALID = 0;
  259. public const int TYPE_INTEGER = 1;
  260. public const int TYPE_FLOAT = 2;
  261. public const int TYPE_STRING = 3;
  262. public const int TYPE_KEY = 4;
  263. public const int TYPE_VECTOR = 5;
  264. public const int TYPE_ROTATION = 6;
  265. //XML RPC Remote Data Channel
  266. public const int REMOTE_DATA_CHANNEL = 1;
  267. public const int REMOTE_DATA_REQUEST = 2;
  268. public const int REMOTE_DATA_REPLY = 3;
  269. //llHTTPRequest
  270. public const int HTTP_METHOD = 0;
  271. public const int HTTP_MIMETYPE = 1;
  272. public const int HTTP_BODY_MAXLENGTH = 2;
  273. public const int HTTP_VERIFY_CERT = 3;
  274. public const int PRIM_MATERIAL = 2;
  275. public const int PRIM_PHYSICS = 3;
  276. public const int PRIM_TEMP_ON_REZ = 4;
  277. public const int PRIM_PHANTOM = 5;
  278. public const int PRIM_POSITION = 6;
  279. public const int PRIM_SIZE = 7;
  280. public const int PRIM_ROTATION = 8;
  281. public const int PRIM_TYPE = 9;
  282. public const int PRIM_TEXTURE = 17;
  283. public const int PRIM_COLOR = 18;
  284. public const int PRIM_BUMP_SHINY = 19;
  285. public const int PRIM_FULLBRIGHT = 20;
  286. public const int PRIM_FLEXIBLE = 21;
  287. public const int PRIM_TEXGEN = 22;
  288. public const int PRIM_CAST_SHADOWS = 24; // Not implemented, here for completeness sake
  289. public const int PRIM_POINT_LIGHT = 23; // Huh?
  290. public const int PRIM_GLOW = 25;
  291. public const int PRIM_TEXGEN_DEFAULT = 0;
  292. public const int PRIM_TEXGEN_PLANAR = 1;
  293. public const int PRIM_TYPE_BOX = 0;
  294. public const int PRIM_TYPE_CYLINDER = 1;
  295. public const int PRIM_TYPE_PRISM = 2;
  296. public const int PRIM_TYPE_SPHERE = 3;
  297. public const int PRIM_TYPE_TORUS = 4;
  298. public const int PRIM_TYPE_TUBE = 5;
  299. public const int PRIM_TYPE_RING = 6;
  300. public const int PRIM_TYPE_SCULPT = 7;
  301. public const int PRIM_HOLE_DEFAULT = 0;
  302. public const int PRIM_HOLE_CIRCLE = 16;
  303. public const int PRIM_HOLE_SQUARE = 32;
  304. public const int PRIM_HOLE_TRIANGLE = 48;
  305. public const int PRIM_MATERIAL_STONE = 0;
  306. public const int PRIM_MATERIAL_METAL = 1;
  307. public const int PRIM_MATERIAL_GLASS = 2;
  308. public const int PRIM_MATERIAL_WOOD = 3;
  309. public const int PRIM_MATERIAL_FLESH = 4;
  310. public const int PRIM_MATERIAL_PLASTIC = 5;
  311. public const int PRIM_MATERIAL_RUBBER = 6;
  312. public const int PRIM_MATERIAL_LIGHT = 7;
  313. public const int PRIM_SHINY_NONE = 0;
  314. public const int PRIM_SHINY_LOW = 1;
  315. public const int PRIM_SHINY_MEDIUM = 2;
  316. public const int PRIM_SHINY_HIGH = 3;
  317. public const int PRIM_BUMP_NONE = 0;
  318. public const int PRIM_BUMP_BRIGHT = 1;
  319. public const int PRIM_BUMP_DARK = 2;
  320. public const int PRIM_BUMP_WOOD = 3;
  321. public const int PRIM_BUMP_BARK = 4;
  322. public const int PRIM_BUMP_BRICKS = 5;
  323. public const int PRIM_BUMP_CHECKER = 6;
  324. public const int PRIM_BUMP_CONCRETE = 7;
  325. public const int PRIM_BUMP_TILE = 8;
  326. public const int PRIM_BUMP_STONE = 9;
  327. public const int PRIM_BUMP_DISKS = 10;
  328. public const int PRIM_BUMP_GRAVEL = 11;
  329. public const int PRIM_BUMP_BLOBS = 12;
  330. public const int PRIM_BUMP_SIDING = 13;
  331. public const int PRIM_BUMP_LARGETILE = 14;
  332. public const int PRIM_BUMP_STUCCO = 15;
  333. public const int PRIM_BUMP_SUCTION = 16;
  334. public const int PRIM_BUMP_WEAVE = 17;
  335. public const int PRIM_SCULPT_TYPE_SPHERE = 1;
  336. public const int PRIM_SCULPT_TYPE_TORUS = 2;
  337. public const int PRIM_SCULPT_TYPE_PLANE = 3;
  338. public const int PRIM_SCULPT_TYPE_CYLINDER = 4;
  339. public const int MASK_BASE = 0;
  340. public const int MASK_OWNER = 1;
  341. public const int MASK_GROUP = 2;
  342. public const int MASK_EVERYONE = 3;
  343. public const int MASK_NEXT = 4;
  344. public const int PERM_TRANSFER = 8192;
  345. public const int PERM_MODIFY = 16384;
  346. public const int PERM_COPY = 32768;
  347. public const int PERM_MOVE = 524288;
  348. public const int PERM_ALL = 2147483647;
  349. public const int PARCEL_MEDIA_COMMAND_STOP = 0;
  350. public const int PARCEL_MEDIA_COMMAND_PAUSE = 1;
  351. public const int PARCEL_MEDIA_COMMAND_PLAY = 2;
  352. public const int PARCEL_MEDIA_COMMAND_LOOP = 3;
  353. public const int PARCEL_MEDIA_COMMAND_TEXTURE = 4;
  354. public const int PARCEL_MEDIA_COMMAND_URL = 5;
  355. public const int PARCEL_MEDIA_COMMAND_TIME = 6;
  356. public const int PARCEL_MEDIA_COMMAND_AGENT = 7;
  357. public const int PARCEL_MEDIA_COMMAND_UNLOAD = 8;
  358. public const int PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9;
  359. public const int PARCEL_MEDIA_COMMAND_TYPE = 10;
  360. public const int PARCEL_MEDIA_COMMAND_SIZE = 11;
  361. public const int PARCEL_MEDIA_COMMAND_DESC = 12;
  362. public const int PARCEL_FLAG_ALLOW_FLY = 0x1; // parcel allows flying
  363. public const int PARCEL_FLAG_ALLOW_SCRIPTS = 0x2; // parcel allows outside scripts
  364. public const int PARCEL_FLAG_ALLOW_LANDMARK = 0x8; // parcel allows landmarks to be created
  365. public const int PARCEL_FLAG_ALLOW_TERRAFORM = 0x10; // parcel allows anyone to terraform the land
  366. public const int PARCEL_FLAG_ALLOW_DAMAGE = 0x20; // parcel allows damage
  367. public const int PARCEL_FLAG_ALLOW_CREATE_OBJECTS = 0x40; // parcel allows anyone to create objects
  368. public const int PARCEL_FLAG_USE_ACCESS_GROUP = 0x100; // parcel limits access to a group
  369. public const int PARCEL_FLAG_USE_ACCESS_LIST = 0x200; // parcel limits access to a list of residents
  370. public const int PARCEL_FLAG_USE_BAN_LIST = 0x400; // parcel uses a ban list, including restricting access based on payment info
  371. public const int PARCEL_FLAG_USE_LAND_PASS_LIST = 0x800; // parcel allows passes to be purchased
  372. public const int PARCEL_FLAG_LOCAL_SOUND_ONLY = 0x8000; // parcel restricts spatialized sound to the parcel
  373. public const int PARCEL_FLAG_RESTRICT_PUSHOBJECT = 0x200000; // parcel restricts llPushObject
  374. public const int PARCEL_FLAG_ALLOW_GROUP_SCRIPTS = 0x2000000; // parcel allows scripts owned by group
  375. public const int PARCEL_FLAG_ALLOW_CREATE_GROUP_OBJECTS = 0x4000000; // parcel allows group object creation
  376. public const int PARCEL_FLAG_ALLOW_ALL_OBJECT_ENTRY = 0x8000000; // parcel allows objects owned by any user to enter
  377. public const int PARCEL_FLAG_ALLOW_GROUP_OBJECT_ENTRY = 0x10000000; // parcel allows with the same group to enter
  378. public const int REGION_FLAG_ALLOW_DAMAGE = 0x1; // region is entirely damage enabled
  379. public const int REGION_FLAG_FIXED_SUN = 0x10; // region has a fixed sun position
  380. public const int REGION_FLAG_BLOCK_TERRAFORM = 0x40; // region terraforming disabled
  381. public const int REGION_FLAG_SANDBOX = 0x100; // region is a sandbox
  382. public const int REGION_FLAG_DISABLE_COLLISIONS = 0x1000; // region has disabled collisions
  383. public const int REGION_FLAG_DISABLE_PHYSICS = 0x4000; // region has disabled physics
  384. public const int REGION_FLAG_BLOCK_FLY = 0x80000; // region blocks flying
  385. public const int REGION_FLAG_ALLOW_DIRECT_TELEPORT = 0x100000; // region allows direct teleports
  386. public const int REGION_FLAG_RESTRICT_PUSHOBJECT = 0x400000; // region restricts llPushObject
  387. public static readonly LSLInteger PAY_HIDE = new LSLInteger(-1);
  388. public static readonly LSLInteger PAY_DEFAULT = new LSLInteger(-2);
  389. public const string NULL_KEY = "00000000-0000-0000-0000-000000000000";
  390. public const string EOF = "\n\n\n";
  391. public const double PI = 3.14159274f;
  392. public const double TWO_PI = 6.28318548f;
  393. public const double PI_BY_TWO = 1.57079637f;
  394. public const double DEG_TO_RAD = 0.01745329238f;
  395. public const double RAD_TO_DEG = 57.29578f;
  396. public const double SQRT2 = 1.414213538f;
  397. public const int STRING_TRIM_HEAD = 1;
  398. public const int STRING_TRIM_TAIL = 2;
  399. public const int STRING_TRIM = 3;
  400. public const int LIST_STAT_RANGE = 0;
  401. public const int LIST_STAT_MIN = 1;
  402. public const int LIST_STAT_MAX = 2;
  403. public const int LIST_STAT_MEAN = 3;
  404. public const int LIST_STAT_MEDIAN = 4;
  405. public const int LIST_STAT_STD_DEV = 5;
  406. public const int LIST_STAT_SUM = 6;
  407. public const int LIST_STAT_SUM_SQUARES = 7;
  408. public const int LIST_STAT_NUM_COUNT = 8;
  409. public const int LIST_STAT_GEOMETRIC_MEAN = 9;
  410. public const int LIST_STAT_HARMONIC_MEAN = 100;
  411. //ParcelPrim Categories
  412. public const int PARCEL_COUNT_TOTAL = 0;
  413. public const int PARCEL_COUNT_OWNER = 1;
  414. public const int PARCEL_COUNT_GROUP = 2;
  415. public const int PARCEL_COUNT_OTHER = 3;
  416. public const int PARCEL_COUNT_SELECTED = 4;
  417. public const int PARCEL_COUNT_TEMP = 5;
  418. public const int DEBUG_CHANNEL = 0x7FFFFFFF;
  419. public const int PUBLIC_CHANNEL = 0x00000000;
  420. public const int OBJECT_NAME = 1;
  421. public const int OBJECT_DESC = 2;
  422. public const int OBJECT_POS = 3;
  423. public const int OBJECT_ROT = 4;
  424. public const int OBJECT_VELOCITY = 5;
  425. public const int OBJECT_OWNER = 6;
  426. public const int OBJECT_GROUP = 7;
  427. public const int OBJECT_CREATOR = 8;
  428. // Can not be public const?
  429. public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0);
  430. public static readonly rotation ZERO_ROTATION = new rotation(0.0, 0.0, 0.0, 1.0);
  431. // constants for llSetCameraParams
  432. public const int CAMERA_PITCH = 0;
  433. public const int CAMERA_FOCUS_OFFSET = 1;
  434. public const int CAMERA_FOCUS_OFFSET_X = 2;
  435. public const int CAMERA_FOCUS_OFFSET_Y = 3;
  436. public const int CAMERA_FOCUS_OFFSET_Z = 4;
  437. public const int CAMERA_POSITION_LAG = 5;
  438. public const int CAMERA_FOCUS_LAG = 6;
  439. public const int CAMERA_DISTANCE = 7;
  440. public const int CAMERA_BEHINDNESS_ANGLE = 8;
  441. public const int CAMERA_BEHINDNESS_LAG = 9;
  442. public const int CAMERA_POSITION_THRESHOLD = 10;
  443. public const int CAMERA_FOCUS_THRESHOLD = 11;
  444. public const int CAMERA_ACTIVE = 12;
  445. public const int CAMERA_POSITION = 13;
  446. public const int CAMERA_POSITION_X = 14;
  447. public const int CAMERA_POSITION_Y = 15;
  448. public const int CAMERA_POSITION_Z = 16;
  449. public const int CAMERA_FOCUS = 17;
  450. public const int CAMERA_FOCUS_X = 18;
  451. public const int CAMERA_FOCUS_Y = 19;
  452. public const int CAMERA_FOCUS_Z = 20;
  453. public const int CAMERA_POSITION_LOCKED = 21;
  454. public const int CAMERA_FOCUS_LOCKED = 22;
  455. // constants for llGetParcelDetails
  456. public const int PARCEL_DETAILS_NAME = 0;
  457. public const int PARCEL_DETAILS_DESC = 1;
  458. public const int PARCEL_DETAILS_OWNER = 2;
  459. public const int PARCEL_DETAILS_GROUP = 3;
  460. public const int PARCEL_DETAILS_AREA = 4;
  461. // constants for llSetClickAction
  462. public const int CLICK_ACTION_NONE = 0;
  463. public const int CLICK_ACTION_TOUCH = 0;
  464. public const int CLICK_ACTION_SIT = 1;
  465. public const int CLICK_ACTION_BUY = 2;
  466. public const int CLICK_ACTION_PAY = 3;
  467. public const int CLICK_ACTION_OPEN = 4;
  468. public const int CLICK_ACTION_PLAY = 5;
  469. public const int CLICK_ACTION_OPEN_MEDIA = 6;
  470. // constants for the llDetectedTouch* functions
  471. public const int TOUCH_INVALID_FACE = -1;
  472. public static readonly vector TOUCH_INVALID_TEXCOORD = new vector(-1.0, -1.0, 0.0);
  473. public static readonly vector TOUCH_INVALID_VECTOR = ZERO_VECTOR;
  474. // Constants for default textures
  475. public const string TEXTURE_BLANK = "5748decc-f629-461c-9a36-a35a221fe21f";
  476. public const string TEXTURE_DEFAULT = "89556747-24cb-43ed-920b-47caed15465f";
  477. public const string TEXTURE_PLYWOOD = "89556747-24cb-43ed-920b-47caed15465f";
  478. public const string TEXTURE_TRANSPARENT = "8dcd4a48-2d37-4909-9f78-f7a9eb4ef903";
  479. public const string TEXTURE_MEDIA = "8b5fec65-8d8d-9dc5-cda8-8fdf2716e361";
  480. }
  481. }