aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorUbitUmarov2018-10-25 02:06:44 +0100
committerUbitUmarov2018-10-25 02:06:44 +0100
commit7479638e88cc4e097ffca1cef577b52ea1631335 (patch)
tree9f3542a2de0bcb493ea64800ec03acd0a0c38085 /OpenSim/Region/ScriptEngine/Shared
parentupdate script syntax file (diff)
downloadopensim-SC-7479638e88cc4e097ffca1cef577b52ea1631335.zip
opensim-SC-7479638e88cc4e097ffca1cef577b52ea1631335.tar.gz
opensim-SC-7479638e88cc4e097ffca1cef577b52ea1631335.tar.bz2
opensim-SC-7479638e88cc4e097ffca1cef577b52ea1631335.tar.xz
remove a unnecessary scripts constants file
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/ICM_Api.cs4
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILS_Api.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs1
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Constants.cs77
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Stub.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs91
7 files changed, 75 insertions, 104 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs
index 3509968..001caa6 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs
@@ -91,7 +91,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
91 get { return m_ScriptEngine.World; } 91 get { return m_ScriptEngine.World; }
92 } 92 }
93 93
94 public string cmDetectedCountry(int number) 94 public LSL_Key cmDetectedCountry(int number)
95 { 95 {
96 m_host.AddScriptLPS(1); 96 m_host.AddScriptLPS(1);
97 if(!m_CMFunctionsEnabled) 97 if(!m_CMFunctionsEnabled)
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ICM_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ICM_Api.cs
index ab215f3..a406c99 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ICM_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ICM_Api.cs
@@ -40,7 +40,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
40{ 40{
41 public interface ICM_Api 41 public interface ICM_Api
42 { 42 {
43 string cmDetectedCountry(int num); 43 key cmDetectedCountry(int detectedNumber);
44 string cmGetAgentCountry(key key); 44 string cmGetAgentCountry(key agentId);
45 } 45 }
46} 46}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILS_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILS_Api.cs
index f2df094..9eee712 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILS_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILS_Api.cs
@@ -43,7 +43,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
43 // Windlight Functions 43 // Windlight Functions
44 LSL_List lsGetWindlightScene(LSL_List rules); 44 LSL_List lsGetWindlightScene(LSL_List rules);
45 int lsSetWindlightScene(LSL_List rules); 45 int lsSetWindlightScene(LSL_List rules);
46 int lsSetWindlightSceneTargeted(LSL_List rules, key target); 46 int lsSetWindlightSceneTargeted(LSL_List rules, key targetId);
47 void lsClearWindlightScene(); 47 void lsClearWindlightScene();
48 } 48 }
49} 49}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
index f4a37ef..9ef356d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
@@ -133,6 +133,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
133 LSL_Float osTerrainGetHeight(int x, int y); // Deprecated 133 LSL_Float osTerrainGetHeight(int x, int y); // Deprecated
134 LSL_Integer osSetTerrainHeight(int x, int y, double val); 134 LSL_Integer osSetTerrainHeight(int x, int y, double val);
135 LSL_Integer osTerrainSetHeight(int x, int y, double val); //Deprecated 135 LSL_Integer osTerrainSetHeight(int x, int y, double val); //Deprecated
136 //ApiDesc Send terrain to all agents
136 void osTerrainFlush(); 137 void osTerrainFlush();
137 138
138 int osRegionRestart(double seconds); 139 int osRegionRestart(double seconds);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Constants.cs
deleted file mode 100644
index f94ef4a..0000000
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Constants.cs
+++ /dev/null
@@ -1,77 +0,0 @@
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
28using System;
29using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
30using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
31using LSLInteger = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
32
33namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
34{
35 public partial class ScriptBaseClass
36 {
37 // Constants for cmWindlight*
38 public const int WL_WATER_COLOR = 0;
39 public const int WL_WATER_FOG_DENSITY_EXPONENT = 1;
40 public const int WL_UNDERWATER_FOG_MODIFIER = 2;
41 public const int WL_REFLECTION_WAVELET_SCALE = 3;
42 public const int WL_FRESNEL_SCALE = 4;
43 public const int WL_FRESNEL_OFFSET = 5;
44 public const int WL_REFRACT_SCALE_ABOVE = 6;
45 public const int WL_REFRACT_SCALE_BELOW = 7;
46 public const int WL_BLUR_MULTIPLIER = 8;
47 public const int WL_BIG_WAVE_DIRECTION = 9;
48 public const int WL_LITTLE_WAVE_DIRECTION = 10;
49 public const int WL_NORMAL_MAP_TEXTURE = 11;
50 public const int WL_HORIZON = 12;
51 public const int WL_HAZE_HORIZON = 13;
52 public const int WL_BLUE_DENSITY = 14;
53 public const int WL_HAZE_DENSITY = 15;
54 public const int WL_DENSITY_MULTIPLIER = 16;
55 public const int WL_DISTANCE_MULTIPLIER = 17;
56 public const int WL_MAX_ALTITUDE = 18;
57 public const int WL_SUN_MOON_COLOR = 19;
58 public const int WL_AMBIENT = 20;
59 public const int WL_EAST_ANGLE = 21;
60 public const int WL_SUN_GLOW_FOCUS = 22;
61 public const int WL_SUN_GLOW_SIZE = 23;
62 public const int WL_SCENE_GAMMA = 24;
63 public const int WL_STAR_BRIGHTNESS = 25;
64 public const int WL_CLOUD_COLOR = 26;
65 public const int WL_CLOUD_XY_DENSITY = 27;
66 public const int WL_CLOUD_COVERAGE = 28;
67 public const int WL_CLOUD_SCALE = 29;
68 public const int WL_CLOUD_DETAIL_XY_DENSITY = 30;
69 public const int WL_CLOUD_SCROLL_X = 31;
70 public const int WL_CLOUD_SCROLL_Y = 32;
71 public const int WL_CLOUD_SCROLL_Y_LOCK = 33;
72 public const int WL_CLOUD_SCROLL_X_LOCK = 34;
73 public const int WL_DRAW_CLASSIC_CLOUDS = 35;
74 public const int WL_SUN_MOON_POSITION = 36;
75
76 }
77}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Stub.cs
index 4132dfa..361cbcb 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Stub.cs
@@ -58,7 +58,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
58 m_CM_Functions = (ICM_Api)api; 58 m_CM_Functions = (ICM_Api)api;
59 } 59 }
60 60
61 public string cmDetectedCountry(int num) 61 public key cmDetectedCountry(int num)
62 { 62 {
63 return m_CM_Functions.cmDetectedCountry(num); 63 return m_CM_Functions.cmDetectedCountry(num);
64 } 64 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index 30c6e79..11dfe0c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -35,9 +35,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
35{ 35{
36 public partial class ScriptBaseClass 36 public partial class ScriptBaseClass
37 { 37 {
38 // LSL CONSTANTS 38 // SCRIPTS CONSTANTS
39 public static readonly LSLInteger TRUE = new LSLInteger(1); 39 public static readonly LSLInteger TRUE = 1;
40 public static readonly LSLInteger FALSE = new LSLInteger(0); 40 public static readonly LSLInteger FALSE = 0;
41 41
42 public const int STATUS_PHYSICS = 1; 42 public const int STATUS_PHYSICS = 1;
43 public const int STATUS_ROTATE_X = 2; 43 public const int STATUS_ROTATE_X = 2;
@@ -55,6 +55,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
55 public const int AGENT_BY_LEGACY_NAME = 1; 55 public const int AGENT_BY_LEGACY_NAME = 1;
56 public const int AGENT_BY_USERNAME = 0x10; 56 public const int AGENT_BY_USERNAME = 0x10;
57 public const int NPC = 0x20; 57 public const int NPC = 0x20;
58 //ApiDesc Objects running a script or physically moving
58 public const int ACTIVE = 2; 59 public const int ACTIVE = 2;
59 public const int PASSIVE = 4; 60 public const int PASSIVE = 4;
60 public const int SCRIPTED = 8; 61 public const int SCRIPTED = 8;
@@ -85,10 +86,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
85 public const int PERMISSION_TELEPORT = 4096; 86 public const int PERMISSION_TELEPORT = 4096;
86 public const int PERMISSION_OVERRIDE_ANIMATIONS = 0x8000; 87 public const int PERMISSION_OVERRIDE_ANIMATIONS = 0x8000;
87 88
88 public const int AGENT_FLYING = 1; 89 public const int AGENT_FLYING = 0x1;
89 public const int AGENT_ATTACHMENTS = 2; 90 //ApiDesc The agent has attachments
90 public const int AGENT_SCRIPTED = 4; 91 public const int AGENT_ATTACHMENTS = 0x2;
91 public const int AGENT_MOUSELOOK = 8; 92 //ApiDesc The agent has scripted attachments
93 public const int AGENT_SCRIPTED = 0x4;
94 public const int AGENT_MOUSELOOK = 0x8;
92 public const int AGENT_SITTING = 0x10; 95 public const int AGENT_SITTING = 0x10;
93 public const int AGENT_ON_OBJECT = 0x20; 96 public const int AGENT_ON_OBJECT = 0x20;
94 public const int AGENT_AWAY = 0x40; 97 public const int AGENT_AWAY = 0x40;
@@ -509,6 +512,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
509 public const int PRIM_SCULPT_TYPE_CYLINDER = 4; 512 public const int PRIM_SCULPT_TYPE_CYLINDER = 4;
510 public const int PRIM_SCULPT_FLAG_INVERT = 0x40; 513 public const int PRIM_SCULPT_FLAG_INVERT = 0x40;
511 public const int PRIM_SCULPT_FLAG_MIRROR = 0x80; 514 public const int PRIM_SCULPT_FLAG_MIRROR = 0x80;
515 //ApiDesc Auxiliar to clear flags keeping scultp type
512 public const int PRIM_SCULPT_TYPE_MASK = 0x07; // auxiliar mask 516 public const int PRIM_SCULPT_TYPE_MASK = 0x07; // auxiliar mask
513 517
514 public const int PRIM_PHYSICS_SHAPE_PRIM = 0; 518 public const int PRIM_PHYSICS_SHAPE_PRIM = 0;
@@ -579,8 +583,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
579 public const int ESTATE_ACCESS_BANNED_AGENT_ADD = 4; 583 public const int ESTATE_ACCESS_BANNED_AGENT_ADD = 4;
580 public const int ESTATE_ACCESS_BANNED_AGENT_REMOVE = 5; 584 public const int ESTATE_ACCESS_BANNED_AGENT_REMOVE = 5;
581 585
582 public static readonly LSLInteger PAY_HIDE = new LSLInteger(-1); 586 public static readonly LSLInteger PAY_HIDE = -1;
583 public static readonly LSLInteger PAY_DEFAULT = new LSLInteger(-2); 587 public static readonly LSLInteger PAY_DEFAULT = -2;
584 588
585 public const string NULL_KEY = "00000000-0000-0000-0000-000000000000"; 589 public const string NULL_KEY = "00000000-0000-0000-0000-000000000000";
586 public const string EOF = "\n\n\n"; 590 public const string EOF = "\n\n\n";
@@ -760,14 +764,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
760 public const int GRAVITY_MULTIPLIER = 8; 764 public const int GRAVITY_MULTIPLIER = 8;
761 765
762 // extra constants for llSetPrimMediaParams 766 // extra constants for llSetPrimMediaParams
763 public static readonly LSLInteger LSL_STATUS_OK = new LSLInteger(0); 767 public static readonly LSLInteger LSL_STATUS_OK = 0;
764 public static readonly LSLInteger LSL_STATUS_MALFORMED_PARAMS = new LSLInteger(1000); 768 public static readonly LSLInteger LSL_STATUS_MALFORMED_PARAMS = 1000;
765 public static readonly LSLInteger LSL_STATUS_TYPE_MISMATCH = new LSLInteger(1001); 769 public static readonly LSLInteger LSL_STATUS_TYPE_MISMATCH = 1001;
766 public static readonly LSLInteger LSL_STATUS_BOUNDS_ERROR = new LSLInteger(1002); 770 public static readonly LSLInteger LSL_STATUS_BOUNDS_ERROR = 1002;
767 public static readonly LSLInteger LSL_STATUS_NOT_FOUND = new LSLInteger(1003); 771 public static readonly LSLInteger LSL_STATUS_NOT_FOUND = 1003;
768 public static readonly LSLInteger LSL_STATUS_NOT_SUPPORTED = new LSLInteger(1004); 772 public static readonly LSLInteger LSL_STATUS_NOT_SUPPORTED = 1004;
769 public static readonly LSLInteger LSL_STATUS_INTERNAL_ERROR = new LSLInteger(1999); 773 public static readonly LSLInteger LSL_STATUS_INTERNAL_ERROR = 1999;
770 public static readonly LSLInteger LSL_STATUS_WHITELIST_FAILED = new LSLInteger(2001); 774 public static readonly LSLInteger LSL_STATUS_WHITELIST_FAILED = 2001;
771 775
772 // Constants for default textures 776 // Constants for default textures
773 public const string TEXTURE_BLANK = "5748decc-f629-461c-9a36-a35a221fe21f"; 777 public const string TEXTURE_BLANK = "5748decc-f629-461c-9a36-a35a221fe21f";
@@ -867,11 +871,54 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
867 /// </summary> 871 /// </summary>
868 public const int OS_LISTEN_REGEX_MESSAGE = 0x2; 872 public const int OS_LISTEN_REGEX_MESSAGE = 0x2;
869 873
870 // for osTeleportObject 874 // Constants for osTeleportObject
871 public const int OSTPOBJ_NONE = 0x0;
872 public const int OSTPOBJ_STOPATTARGET = 0x1; // stops at destination
873 public const int OSTPOBJ_STOPONFAIL = 0x2; // stops at jump point if tp fails
874 public const int OSTPOBJ_SETROT = 0x4; // the rotation is the final rotation, otherwise is a added rotation
875 875
876 //ApiDesc osTeleportObject no flags
877 public const int OSTPOBJ_NONE = 0x0;
878 //ApiDesc osTeleportObject flag stop at destination
879 public const int OSTPOBJ_STOPATTARGET = 0x1;
880 //ApiDesc osTeleportObject flag stop at jump point if tp fails
881 public const int OSTPOBJ_STOPONFAIL = 0x2;
882 //ApiDesc osTeleportObject flag the rotation is the final rotation, otherwise is a added rotation
883 public const int OSTPOBJ_SETROT = 0x4;
884
885 // Constants for Windlight
886 public const int WL_WATER_COLOR = 0;
887 public const int WL_WATER_FOG_DENSITY_EXPONENT = 1;
888 public const int WL_UNDERWATER_FOG_MODIFIER = 2;
889 public const int WL_REFLECTION_WAVELET_SCALE = 3;
890 public const int WL_FRESNEL_SCALE = 4;
891 public const int WL_FRESNEL_OFFSET = 5;
892 public const int WL_REFRACT_SCALE_ABOVE = 6;
893 public const int WL_REFRACT_SCALE_BELOW = 7;
894 public const int WL_BLUR_MULTIPLIER = 8;
895 public const int WL_BIG_WAVE_DIRECTION = 9;
896 public const int WL_LITTLE_WAVE_DIRECTION = 10;
897 public const int WL_NORMAL_MAP_TEXTURE = 11;
898 public const int WL_HORIZON = 12;
899 public const int WL_HAZE_HORIZON = 13;
900 public const int WL_BLUE_DENSITY = 14;
901 public const int WL_HAZE_DENSITY = 15;
902 public const int WL_DENSITY_MULTIPLIER = 16;
903 public const int WL_DISTANCE_MULTIPLIER = 17;
904 public const int WL_MAX_ALTITUDE = 18;
905 public const int WL_SUN_MOON_COLOR = 19;
906 public const int WL_AMBIENT = 20;
907 public const int WL_EAST_ANGLE = 21;
908 public const int WL_SUN_GLOW_FOCUS = 22;
909 public const int WL_SUN_GLOW_SIZE = 23;
910 public const int WL_SCENE_GAMMA = 24;
911 public const int WL_STAR_BRIGHTNESS = 25;
912 public const int WL_CLOUD_COLOR = 26;
913 public const int WL_CLOUD_XY_DENSITY = 27;
914 public const int WL_CLOUD_COVERAGE = 28;
915 public const int WL_CLOUD_SCALE = 29;
916 public const int WL_CLOUD_DETAIL_XY_DENSITY = 30;
917 public const int WL_CLOUD_SCROLL_X = 31;
918 public const int WL_CLOUD_SCROLL_Y = 32;
919 public const int WL_CLOUD_SCROLL_Y_LOCK = 33;
920 public const int WL_CLOUD_SCROLL_X_LOCK = 34;
921 public const int WL_DRAW_CLASSIC_CLOUDS = 35;
922 public const int WL_SUN_MOON_POSITION = 36;
876 } 923 }
877} 924}