aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorCharles Krinke2008-08-07 15:02:29 +0000
committerCharles Krinke2008-08-07 15:02:29 +0000
commitb72cc7df015d635c0c3d92b6ed450a147ed3c10b (patch)
tree72338df330f665e7c42bd495b138bf54140f9883 /OpenSim/Region/ScriptEngine
parentPatch #9158 (diff)
downloadopensim-SC_OLD-b72cc7df015d635c0c3d92b6ed450a147ed3c10b.zip
opensim-SC_OLD-b72cc7df015d635c0c3d92b6ed450a147ed3c10b.tar.gz
opensim-SC_OLD-b72cc7df015d635c0c3d92b6ed450a147ed3c10b.tar.bz2
opensim-SC_OLD-b72cc7df015d635c0c3d92b6ed450a147ed3c10b.tar.xz
Mantis#1888. Thank you kindly, Tyre for a patch that:
This patch adds the missing parcel and region flag constants for LSL scripts. Tested with .Net and XEngine
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs27
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs29
2 files changed, 55 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
index 696967b..0a2ce15 100644
--- a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
+++ b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
@@ -2376,6 +2376,33 @@ namespace OpenSim.Region.ScriptEngine.Common
2376 public const int PARCEL_MEDIA_COMMAND_UNLOAD = 8; 2376 public const int PARCEL_MEDIA_COMMAND_UNLOAD = 8;
2377 public const int PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9; 2377 public const int PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9;
2378 2378
2379 public const int PARCEL_FLAG_ALLOW_FLY = 0x1; // parcel allows flying
2380 public const int PARCEL_FLAG_ALLOW_SCRIPTS = 0x2; // parcel allows outside scripts
2381 public const int PARCEL_FLAG_ALLOW_LANDMARK = 0x8; // parcel allows landmarks to be created
2382 public const int PARCEL_FLAG_ALLOW_TERRAFORM = 0x10; // parcel allows anyone to terraform the land
2383 public const int PARCEL_FLAG_ALLOW_DAMAGE = 0x20; // parcel allows damage
2384 public const int PARCEL_FLAG_ALLOW_CREATE_OBJECTS = 0x40; // parcel allows anyone to create objects
2385 public const int PARCEL_FLAG_USE_ACCESS_GROUP = 0x100; // parcel limits access to a group
2386 public const int PARCEL_FLAG_USE_ACCESS_LIST = 0x200; // parcel limits access to a list of residents
2387 public const int PARCEL_FLAG_USE_BAN_LIST = 0x400; // parcel uses a ban list, including restricting access based on payment info
2388 public const int PARCEL_FLAG_USE_LAND_PASS_LIST = 0x800; // parcel allows passes to be purchased
2389 public const int PARCEL_FLAG_LOCAL_SOUND_ONLY = 0x8000; // parcel restricts spatialized sound to the parcel
2390 public const int PARCEL_FLAG_RESTRICT_PUSHOBJECT = 0x200000; // parcel restricts llPushObject
2391 public const int PARCEL_FLAG_ALLOW_GROUP_SCRIPTS = 0x2000000; // parcel allows scripts owned by group
2392 public const int PARCEL_FLAG_ALLOW_CREATE_GROUP_OBJECTS = 0x4000000; // parcel allows group object creation
2393 public const int PARCEL_FLAG_ALLOW_ALL_OBJECT_ENTRY = 0x8000000; // parcel allows objects owned by any user to enter
2394 public const int PARCEL_FLAG_ALLOW_GROUP_OBJECT_ENTRY = 0x10000000; // parcel allows with the same group to enter
2395
2396 public const int REGION_FLAG_ALLOW_DAMAGE = 0x1; // region is entirely damage enabled
2397 public const int REGION_FLAG_FIXED_SUN = 0x10; // region has a fixed sun position
2398 public const int REGION_FLAG_BLOCK_TERRAFORM = 0x40; // region terraforming disabled
2399 public const int REGION_FLAG_SANDBOX = 0x100; // region is a sandbox
2400 public const int REGION_FLAG_DISABLE_COLLISIONS = 0x1000; // region has disabled collisions
2401 public const int REGION_FLAG_DISABLE_PHYSICS = 0x4000; // region has disabled physics
2402 public const int REGION_FLAG_BLOCK_FLY = 0x80000; // region blocks flying
2403 public const int REGION_FLAG_ALLOW_DIRECT_TELEPORT = 0x100000; // region allows direct teleports
2404 public const int REGION_FLAG_RESTRICT_PUSHOBJECT = 0x400000; // region restricts llPushObject
2405
2379 public const int PAY_HIDE = -1; 2406 public const int PAY_HIDE = -1;
2380 public const int PAY_DEFAULT = -2; 2407 public const int PAY_DEFAULT = -2;
2381 2408
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index 3dc1c05..739e168 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -371,6 +371,33 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
371 public const int PARCEL_MEDIA_COMMAND_UNLOAD = 8; 371 public const int PARCEL_MEDIA_COMMAND_UNLOAD = 8;
372 public const int PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9; 372 public const int PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9;
373 373
374 public const int PARCEL_FLAG_ALLOW_FLY = 0x1; // parcel allows flying
375 public const int PARCEL_FLAG_ALLOW_SCRIPTS = 0x2; // parcel allows outside scripts
376 public const int PARCEL_FLAG_ALLOW_LANDMARK = 0x8; // parcel allows landmarks to be created
377 public const int PARCEL_FLAG_ALLOW_TERRAFORM = 0x10; // parcel allows anyone to terraform the land
378 public const int PARCEL_FLAG_ALLOW_DAMAGE = 0x20; // parcel allows damage
379 public const int PARCEL_FLAG_ALLOW_CREATE_OBJECTS = 0x40; // parcel allows anyone to create objects
380 public const int PARCEL_FLAG_USE_ACCESS_GROUP = 0x100; // parcel limits access to a group
381 public const int PARCEL_FLAG_USE_ACCESS_LIST = 0x200; // parcel limits access to a list of residents
382 public const int PARCEL_FLAG_USE_BAN_LIST = 0x400; // parcel uses a ban list, including restricting access based on payment info
383 public const int PARCEL_FLAG_USE_LAND_PASS_LIST = 0x800; // parcel allows passes to be purchased
384 public const int PARCEL_FLAG_LOCAL_SOUND_ONLY = 0x8000; // parcel restricts spatialized sound to the parcel
385 public const int PARCEL_FLAG_RESTRICT_PUSHOBJECT = 0x200000; // parcel restricts llPushObject
386 public const int PARCEL_FLAG_ALLOW_GROUP_SCRIPTS = 0x2000000; // parcel allows scripts owned by group
387 public const int PARCEL_FLAG_ALLOW_CREATE_GROUP_OBJECTS = 0x4000000; // parcel allows group object creation
388 public const int PARCEL_FLAG_ALLOW_ALL_OBJECT_ENTRY = 0x8000000; // parcel allows objects owned by any user to enter
389 public const int PARCEL_FLAG_ALLOW_GROUP_OBJECT_ENTRY = 0x10000000; // parcel allows with the same group to enter
390
391 public const int REGION_FLAG_ALLOW_DAMAGE = 0x1; // region is entirely damage enabled
392 public const int REGION_FLAG_FIXED_SUN = 0x10; // region has a fixed sun position
393 public const int REGION_FLAG_BLOCK_TERRAFORM = 0x40; // region terraforming disabled
394 public const int REGION_FLAG_SANDBOX = 0x100; // region is a sandbox
395 public const int REGION_FLAG_DISABLE_COLLISIONS = 0x1000; // region has disabled collisions
396 public const int REGION_FLAG_DISABLE_PHYSICS = 0x4000; // region has disabled physics
397 public const int REGION_FLAG_BLOCK_FLY = 0x80000; // region blocks flying
398 public const int REGION_FLAG_ALLOW_DIRECT_TELEPORT = 0x100000; // region allows direct teleports
399 public const int REGION_FLAG_RESTRICT_PUSHOBJECT = 0x400000; // region restricts llPushObject
400
374 public const int PAY_HIDE = -1; 401 public const int PAY_HIDE = -1;
375 public const int PAY_DEFAULT = -2; 402 public const int PAY_DEFAULT = -2;
376 403
@@ -405,7 +432,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
405 public const int PARCEL_COUNT_SELECTED = 4; 432 public const int PARCEL_COUNT_SELECTED = 4;
406 public const int PARCEL_COUNT_TEMP = 5; 433 public const int PARCEL_COUNT_TEMP = 5;
407 434
408 public const int DEBUG_CHANNEL = 0x7FFFFFFF; 435 public const int DEBUG_CHANNEL = 0x7FFFFFFF;
409 public const int PUBLIC_CHANNEL = 0x00000000; 436 public const int PUBLIC_CHANNEL = 0x00000000;
410 437
411 public const int OBJECT_NAME = 1; 438 public const int OBJECT_NAME = 1;