123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423 |
- /*
- * Copyright (c) Contributors, http://opensimulator.org/
- * See CONTRIBUTORS.TXT for a full list of copyright holders.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the OpenSim Project nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
- using System;
- using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
- using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
- using LSLInteger = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
- namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
- {
- public partial class ScriptBaseClass : MarshalByRefObject
- {
- // LSL CONSTANTS
- public LSLInteger TRUE = new LSLInteger(1);
- public LSLInteger FALSE = new LSLInteger(0);
- public const int STATUS_PHYSICS = 1;
- public const int STATUS_ROTATE_X = 2;
- public const int STATUS_ROTATE_Y = 4;
- public const int STATUS_ROTATE_Z = 8;
- public const int STATUS_PHANTOM = 16;
- public const int STATUS_SANDBOX = 32;
- public const int STATUS_BLOCK_GRAB = 64;
- public const int STATUS_DIE_AT_EDGE = 128;
- public const int STATUS_RETURN_AT_EDGE = 256;
- public const int STATUS_CAST_SHADOWS = 512;
- public const int AGENT = 1;
- public const int ACTIVE = 2;
- public const int PASSIVE = 4;
- public const int SCRIPTED = 8;
- public const int CONTROL_FWD = 1;
- public const int CONTROL_BACK = 2;
- public const int CONTROL_LEFT = 4;
- public const int CONTROL_RIGHT = 8;
- public const int CONTROL_UP = 16;
- public const int CONTROL_DOWN = 32;
- public const int CONTROL_ROT_LEFT = 256;
- public const int CONTROL_ROT_RIGHT = 512;
- public const int CONTROL_LBUTTON = 268435456;
- public const int CONTROL_ML_LBUTTON = 1073741824;
- //Permissions
- public const int PERMISSION_DEBIT = 2;
- public const int PERMISSION_TAKE_CONTROLS = 4;
- public const int PERMISSION_REMAP_CONTROLS = 8;
- public const int PERMISSION_TRIGGER_ANIMATION = 16;
- public const int PERMISSION_ATTACH = 32;
- public const int PERMISSION_RELEASE_OWNERSHIP = 64;
- public const int PERMISSION_CHANGE_LINKS = 128;
- public const int PERMISSION_CHANGE_JOINTS = 256;
- public const int PERMISSION_CHANGE_PERMISSIONS = 512;
- public const int PERMISSION_TRACK_CAMERA = 1024;
- public const int AGENT_FLYING = 1;
- public const int AGENT_ATTACHMENTS = 2;
- public const int AGENT_SCRIPTED = 4;
- public const int AGENT_MOUSELOOK = 8;
- public const int AGENT_SITTING = 16;
- public const int AGENT_ON_OBJECT = 32;
- public const int AGENT_AWAY = 64;
- public const int AGENT_WALKING = 128;
- public const int AGENT_IN_AIR = 256;
- public const int AGENT_TYPING = 512;
- public const int AGENT_CROUCHING = 1024;
- public const int AGENT_BUSY = 2048;
- public const int AGENT_ALWAYS_RUN = 4096;
- //Particle Systems
- public const int PSYS_PART_INTERP_COLOR_MASK = 1;
- public const int PSYS_PART_INTERP_SCALE_MASK = 2;
- public const int PSYS_PART_BOUNCE_MASK = 4;
- public const int PSYS_PART_WIND_MASK = 8;
- public const int PSYS_PART_FOLLOW_SRC_MASK = 16;
- public const int PSYS_PART_FOLLOW_VELOCITY_MASK = 32;
- public const int PSYS_PART_TARGET_POS_MASK = 64;
- public const int PSYS_PART_TARGET_LINEAR_MASK = 128;
- public const int PSYS_PART_EMISSIVE_MASK = 256;
- public const int PSYS_PART_FLAGS = 0;
- public const int PSYS_PART_START_COLOR = 1;
- public const int PSYS_PART_START_ALPHA = 2;
- public const int PSYS_PART_END_COLOR = 3;
- public const int PSYS_PART_END_ALPHA = 4;
- public const int PSYS_PART_START_SCALE = 5;
- public const int PSYS_PART_END_SCALE = 6;
- public const int PSYS_PART_MAX_AGE = 7;
- public const int PSYS_SRC_ACCEL = 8;
- public const int PSYS_SRC_PATTERN = 9;
- public const int PSYS_SRC_INNERANGLE = 10;
- public const int PSYS_SRC_OUTERANGLE = 11;
- public const int PSYS_SRC_TEXTURE = 12;
- public const int PSYS_SRC_BURST_RATE = 13;
- public const int PSYS_SRC_BURST_PART_COUNT = 15;
- public const int PSYS_SRC_BURST_RADIUS = 16;
- public const int PSYS_SRC_BURST_SPEED_MIN = 17;
- public const int PSYS_SRC_BURST_SPEED_MAX = 18;
- public const int PSYS_SRC_MAX_AGE = 19;
- public const int PSYS_SRC_TARGET_KEY = 20;
- public const int PSYS_SRC_OMEGA = 21;
- public const int PSYS_SRC_ANGLE_BEGIN = 22;
- public const int PSYS_SRC_ANGLE_END = 23;
- public const int PSYS_SRC_PATTERN_DROP = 1;
- public const int PSYS_SRC_PATTERN_EXPLODE = 2;
- public const int PSYS_SRC_PATTERN_ANGLE = 4;
- public const int PSYS_SRC_PATTERN_ANGLE_CONE = 8;
- public const int PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY = 16;
- public const int VEHICLE_TYPE_NONE = 0;
- public const int VEHICLE_TYPE_SLED = 1;
- public const int VEHICLE_TYPE_CAR = 2;
- public const int VEHICLE_TYPE_BOAT = 3;
- public const int VEHICLE_TYPE_AIRPLANE = 4;
- public const int VEHICLE_TYPE_BALLOON = 5;
- public const int VEHICLE_LINEAR_FRICTION_TIMESCALE = 16;
- public const int VEHICLE_ANGULAR_FRICTION_TIMESCALE = 17;
- public const int VEHICLE_LINEAR_MOTOR_DIRECTION = 18;
- public const int VEHICLE_LINEAR_MOTOR_OFFSET = 20;
- public const int VEHICLE_ANGULAR_MOTOR_DIRECTION = 19;
- public const int VEHICLE_HOVER_HEIGHT = 24;
- public const int VEHICLE_HOVER_EFFICIENCY = 25;
- public const int VEHICLE_HOVER_TIMESCALE = 26;
- public const int VEHICLE_BUOYANCY = 27;
- public const int VEHICLE_LINEAR_DEFLECTION_EFFICIENCY = 28;
- public const int VEHICLE_LINEAR_DEFLECTION_TIMESCALE = 29;
- public const int VEHICLE_LINEAR_MOTOR_TIMESCALE = 30;
- public const int VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE = 31;
- public const int VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY = 32;
- public const int VEHICLE_ANGULAR_DEFLECTION_TIMESCALE = 33;
- public const int VEHICLE_ANGULAR_MOTOR_TIMESCALE = 34;
- public const int VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE = 35;
- public const int VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY = 36;
- public const int VEHICLE_VERTICAL_ATTRACTION_TIMESCALE = 37;
- public const int VEHICLE_BANKING_EFFICIENCY = 38;
- public const int VEHICLE_BANKING_MIX = 39;
- public const int VEHICLE_BANKING_TIMESCALE = 40;
- public const int VEHICLE_REFERENCE_FRAME = 44;
- public const int VEHICLE_FLAG_NO_DEFLECTION_UP = 1;
- public const int VEHICLE_FLAG_LIMIT_ROLL_ONLY = 2;
- public const int VEHICLE_FLAG_HOVER_WATER_ONLY = 4;
- public const int VEHICLE_FLAG_HOVER_TERRAIN_ONLY = 8;
- public const int VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT = 16;
- public const int VEHICLE_FLAG_HOVER_UP_ONLY = 32;
- public const int VEHICLE_FLAG_LIMIT_MOTOR_UP = 64;
- public const int VEHICLE_FLAG_MOUSELOOK_STEER = 128;
- public const int VEHICLE_FLAG_MOUSELOOK_BANK = 256;
- public const int VEHICLE_FLAG_CAMERA_DECOUPLED = 512;
- public const int INVENTORY_ALL = -1;
- public const int INVENTORY_NONE = -1;
- public const int INVENTORY_TEXTURE = 0;
- public const int INVENTORY_SOUND = 1;
- public const int INVENTORY_LANDMARK = 3;
- public const int INVENTORY_CLOTHING = 5;
- public const int INVENTORY_OBJECT = 6;
- public const int INVENTORY_NOTECARD = 7;
- public const int INVENTORY_SCRIPT = 10;
- public const int INVENTORY_BODYPART = 13;
- public const int INVENTORY_ANIMATION = 20;
- public const int INVENTORY_GESTURE = 21;
- public const int ATTACH_CHEST = 1;
- public const int ATTACH_HEAD = 2;
- public const int ATTACH_LSHOULDER = 3;
- public const int ATTACH_RSHOULDER = 4;
- public const int ATTACH_LHAND = 5;
- public const int ATTACH_RHAND = 6;
- public const int ATTACH_LFOOT = 7;
- public const int ATTACH_RFOOT = 8;
- public const int ATTACH_BACK = 9;
- public const int ATTACH_PELVIS = 10;
- public const int ATTACH_MOUTH = 11;
- public const int ATTACH_CHIN = 12;
- public const int ATTACH_LEAR = 13;
- public const int ATTACH_REAR = 14;
- public const int ATTACH_LEYE = 15;
- public const int ATTACH_REYE = 16;
- public const int ATTACH_NOSE = 17;
- public const int ATTACH_RUARM = 18;
- public const int ATTACH_RLARM = 19;
- public const int ATTACH_LUARM = 20;
- public const int ATTACH_LLARM = 21;
- public const int ATTACH_RHIP = 22;
- public const int ATTACH_RULEG = 23;
- public const int ATTACH_RLLEG = 24;
- public const int ATTACH_LHIP = 25;
- public const int ATTACH_LULEG = 26;
- public const int ATTACH_LLLEG = 27;
- public const int ATTACH_BELLY = 28;
- public const int ATTACH_RPEC = 29;
- public const int ATTACH_LPEC = 30;
- public const int LAND_LEVEL = 0;
- public const int LAND_RAISE = 1;
- public const int LAND_LOWER = 2;
- public const int LAND_SMOOTH = 3;
- public const int LAND_NOISE = 4;
- public const int LAND_REVERT = 5;
- public const int LAND_SMALL_BRUSH = 1;
- public const int LAND_MEDIUM_BRUSH = 2;
- public const int LAND_LARGE_BRUSH = 3;
- //Agent Dataserver
- public const int DATA_ONLINE = 1;
- public const int DATA_NAME = 2;
- public const int DATA_BORN = 3;
- public const int DATA_RATING = 4;
- public const int DATA_SIM_POS = 5;
- public const int DATA_SIM_STATUS = 6;
- public const int DATA_SIM_RATING = 7;
- public const int DATA_PAYINFO = 8;
- public const int ANIM_ON = 1;
- public const int LOOP = 2;
- public const int REVERSE = 4;
- public const int PING_PONG = 8;
- public const int SMOOTH = 16;
- public const int ROTATE = 32;
- public const int SCALE = 64;
- public const int ALL_SIDES = -1;
- public const int LINK_SET = -1;
- public const int LINK_ROOT = 1;
- public const int LINK_ALL_OTHERS = -2;
- public const int LINK_ALL_CHILDREN = -3;
- public const int LINK_THIS = -4;
- public const int CHANGED_INVENTORY = 1;
- public const int CHANGED_COLOR = 2;
- public const int CHANGED_SHAPE = 4;
- public const int CHANGED_SCALE = 8;
- public const int CHANGED_TEXTURE = 16;
- public const int CHANGED_LINK = 32;
- public const int CHANGED_ALLOWED_DROP = 64;
- public const int CHANGED_OWNER = 128;
- public const int CHANGED_REGION_RESTART = 256;
- public const int TYPE_INVALID = 0;
- public const int TYPE_INTEGER = 1;
- public const int TYPE_double = 2;
- public const int TYPE_STRING = 3;
- public const int TYPE_KEY = 4;
- public const int TYPE_VECTOR = 5;
- public const int TYPE_ROTATION = 6;
- //XML RPC Remote Data Channel
- public const int REMOTE_DATA_CHANNEL = 1;
- public const int REMOTE_DATA_REQUEST = 2;
- public const int REMOTE_DATA_REPLY = 3;
- //llHTTPRequest
- public const int HTTP_METHOD = 0;
- public const int HTTP_MIMETYPE = 1;
- public const int HTTP_BODY_MAXLENGTH = 2;
- public const int HTTP_VERIFY_CERT = 3;
- public const int PRIM_MATERIAL = 2;
- public const int PRIM_PHYSICS = 3;
- public const int PRIM_TEMP_ON_REZ = 4;
- public const int PRIM_PHANTOM = 5;
- public const int PRIM_POSITION = 6;
- public const int PRIM_SIZE = 7;
- public const int PRIM_ROTATION = 8;
- public const int PRIM_TYPE = 9;
- public const int PRIM_TEXTURE = 17;
- public const int PRIM_COLOR = 18;
- public const int PRIM_BUMP_SHINY = 19;
- public const int PRIM_FULLBRIGHT = 20;
- public const int PRIM_FLEXIBLE = 21;
- public const int PRIM_TEXGEN = 22;
- public const int PRIM_CAST_SHADOWS = 24; // Not implemented, here for completeness sake
- public const int PRIM_POINT_LIGHT = 23; // Huh?
- public const int PRIM_GLOW = 25;
- public const int PRIM_TEXGEN_DEFAULT = 0;
- public const int PRIM_TEXGEN_PLANAR = 1;
- public const int PRIM_TYPE_BOX = 0;
- public const int PRIM_TYPE_CYLINDER = 1;
- public const int PRIM_TYPE_PRISM = 2;
- public const int PRIM_TYPE_SPHERE = 3;
- public const int PRIM_TYPE_TORUS = 4;
- public const int PRIM_TYPE_TUBE = 5;
- public const int PRIM_TYPE_RING = 6;
- public const int PRIM_TYPE_SCULPT = 7;
- public const int PRIM_HOLE_DEFAULT = 0;
- public const int PRIM_HOLE_CIRCLE = 16;
- public const int PRIM_HOLE_SQUARE = 32;
- public const int PRIM_HOLE_TRIANGLE = 48;
- public const int PRIM_MATERIAL_STONE = 0;
- public const int PRIM_MATERIAL_METAL = 1;
- public const int PRIM_MATERIAL_GLASS = 2;
- public const int PRIM_MATERIAL_WOOD = 3;
- public const int PRIM_MATERIAL_FLESH = 4;
- public const int PRIM_MATERIAL_PLASTIC = 5;
- public const int PRIM_MATERIAL_RUBBER = 6;
- public const int PRIM_MATERIAL_LIGHT = 7;
- public const int PRIM_SHINY_NONE = 0;
- public const int PRIM_SHINY_LOW = 1;
- public const int PRIM_SHINY_MEDIUM = 2;
- public const int PRIM_SHINY_HIGH = 3;
- public const int PRIM_BUMP_NONE = 0;
- public const int PRIM_BUMP_BRIGHT = 1;
- public const int PRIM_BUMP_DARK = 2;
- public const int PRIM_BUMP_WOOD = 3;
- public const int PRIM_BUMP_BARK = 4;
- public const int PRIM_BUMP_BRICKS = 5;
- public const int PRIM_BUMP_CHECKER = 6;
- public const int PRIM_BUMP_CONCRETE = 7;
- public const int PRIM_BUMP_TILE = 8;
- public const int PRIM_BUMP_STONE = 9;
- public const int PRIM_BUMP_DISKS = 10;
- public const int PRIM_BUMP_GRAVEL = 11;
- public const int PRIM_BUMP_BLOBS = 12;
- public const int PRIM_BUMP_SIDING = 13;
- public const int PRIM_BUMP_LARGETILE = 14;
- public const int PRIM_BUMP_STUCCO = 15;
- public const int PRIM_BUMP_SUCTION = 16;
- public const int PRIM_BUMP_WEAVE = 17;
- public const int PRIM_SCULPT_TYPE_SPHERE = 1;
- public const int PRIM_SCULPT_TYPE_TORUS = 2;
- public const int PRIM_SCULPT_TYPE_PLANE = 3;
- public const int PRIM_SCULPT_TYPE_CYLINDER = 4;
- public const int MASK_BASE = 0;
- public const int MASK_OWNER = 1;
- public const int MASK_GROUP = 2;
- public const int MASK_EVERYONE = 3;
- public const int MASK_NEXT = 4;
- public const int PERM_TRANSFER = 8192;
- public const int PERM_MODIFY = 16384;
- public const int PERM_COPY = 32768;
- public const int PERM_MOVE = 524288;
- public const int PERM_ALL = 2147483647;
- public const int PARCEL_MEDIA_COMMAND_STOP = 0;
- public const int PARCEL_MEDIA_COMMAND_PAUSE = 1;
- public const int PARCEL_MEDIA_COMMAND_PLAY = 2;
- public const int PARCEL_MEDIA_COMMAND_LOOP = 3;
- public const int PARCEL_MEDIA_COMMAND_TEXTURE = 4;
- public const int PARCEL_MEDIA_COMMAND_URL = 5;
- public const int PARCEL_MEDIA_COMMAND_TIME = 6;
- public const int PARCEL_MEDIA_COMMAND_AGENT = 7;
- public const int PARCEL_MEDIA_COMMAND_UNLOAD = 8;
- public const int PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9;
- public const int PAY_HIDE = -1;
- public const int PAY_DEFAULT = -2;
- public const string NULL_KEY = "00000000-0000-0000-0000-000000000000";
- public const string EOF = "\n\n\n";
- public const double PI = 3.14159274f;
- public const double TWO_PI = 6.28318548f;
- public const double PI_BY_TWO = 1.57079637f;
- public const double DEG_TO_RAD = 0.01745329238f;
- public const double RAD_TO_DEG = 57.29578f;
- public const double SQRT2 = 1.414213538f;
- public const int STRING_TRIM_HEAD = 1;
- public const int STRING_TRIM_TAIL = 2;
- public const int STRING_TRIM = 3;
- public const int LIST_STAT_RANGE = 0;
- public const int LIST_STAT_MIN = 1;
- public const int LIST_STAT_MAX = 2;
- public const int LIST_STAT_MEAN = 3;
- public const int LIST_STAT_MEDIAN = 4;
- public const int LIST_STAT_STD_DEV = 5;
- public const int LIST_STAT_SUM = 6;
- public const int LIST_STAT_SUM_SQUARES = 7;
- public const int LIST_STAT_NUM_COUNT = 8;
- public const int LIST_STAT_GEOMETRIC_MEAN = 9;
- public const int LIST_STAT_HARMONIC_MEAN = 100;
- //ParcelPrim Categories
- public const int PARCEL_COUNT_TOTAL = 0;
- public const int PARCEL_COUNT_OWNER = 1;
- public const int PARCEL_COUNT_GROUP = 2;
- public const int PARCEL_COUNT_OTHER = 3;
- public const int PARCEL_COUNT_SELECTED = 4;
- public const int PARCEL_COUNT_TEMP = 5;
- public const int DEBUG_CHANNEL = 0x7FFFFFFF;
- public const int PUBLIC_CHANNEL = 0x00000000;
- public const int OBJECT_NAME = 1;
- public const int OBJECT_DESC = 2;
- public const int OBJECT_POS = 3;
- public const int OBJECT_ROT = 4;
- public const int OBJECT_VELOCITY = 5;
- public const int OBJECT_OWNER = 6;
- public const int OBJECT_GROUP = 7;
- public const int OBJECT_CREATOR = 8;
- // Can not be public const?
- public vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0);
- public rotation ZERO_ROTATION = new rotation(0.0, 0, 0.0, 1.0);
- }
- }
|