aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorUbitUmarov2018-11-10 21:00:04 +0000
committerUbitUmarov2018-11-10 21:00:04 +0000
commit9185d397df9526ed6218fccddb68a5331927e2a9 (patch)
treeec751dc8b87d13bcd9f45d6611a36cdbe677ee35 /OpenSim/Region/ScriptEngine/Shared/Api
parentlast commit was relative to mantis 8405 not 8396 (diff)
downloadopensim-SC-9185d397df9526ed6218fccddb68a5331927e2a9.zip
opensim-SC-9185d397df9526ed6218fccddb68a5331927e2a9.tar.gz
opensim-SC-9185d397df9526ed6218fccddb68a5331927e2a9.tar.bz2
opensim-SC-9185d397df9526ed6218fccddb68a5331927e2a9.tar.xz
add a bit more things to ScriptSyntax, change a few more incoerent lsl types in function arguments
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs12
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs20
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs23
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs6
4 files changed, 41 insertions, 20 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 2bfd9b4..a72d4e9 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -151,7 +151,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
151 protected int m_sleepMsOnSetDamage = 5000; 151 protected int m_sleepMsOnSetDamage = 5000;
152 protected int m_sleepMsOnTextBox = 1000; 152 protected int m_sleepMsOnTextBox = 1000;
153 protected int m_sleepMsOnAdjustSoundVolume = 100; 153 protected int m_sleepMsOnAdjustSoundVolume = 100;
154 protected int m_sleepMsOnEjectFromLand = 5000; 154 protected int m_sleepMsOnEjectFromLand = 1000;
155 protected int m_sleepMsOnAddToLandPassList = 100; 155 protected int m_sleepMsOnAddToLandPassList = 100;
156 protected int m_sleepMsOnDialog = 1000; 156 protected int m_sleepMsOnDialog = 1000;
157 protected int m_sleepMsOnRemoteLoadScript = 3000; 157 protected int m_sleepMsOnRemoteLoadScript = 3000;
@@ -4454,7 +4454,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4454 } 4454 }
4455 } 4455 }
4456 4456
4457 public void llCreateLink(string target, int parent) 4457 public void llCreateLink(LSL_String target, LSL_Integer parent)
4458 { 4458 {
4459 m_host.AddScriptLPS(1); 4459 m_host.AddScriptLPS(1);
4460 4460
@@ -6923,7 +6923,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6923 } 6923 }
6924 } 6924 }
6925 6925
6926 public void llEjectFromLand(string pest) 6926 public void llEjectFromLand(LSL_Key pest)
6927 { 6927 {
6928 m_host.AddScriptLPS(1); 6928 m_host.AddScriptLPS(1);
6929 UUID agentID = new UUID(); 6929 UUID agentID = new UUID();
@@ -7955,7 +7955,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7955 } 7955 }
7956 7956
7957 7957
7958 public void llAddToLandPassList(string avatar, double hours) 7958 public void llAddToLandPassList(LSL_Key avatar, double hours)
7959 { 7959 {
7960 m_host.AddScriptLPS(1); 7960 m_host.AddScriptLPS(1);
7961 UUID key; 7961 UUID key;
@@ -8087,7 +8087,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8087 } 8087 }
8088 } 8088 }
8089 8089
8090 public void llDialog(string avatar, string message, LSL_List buttons, int chat_channel) 8090 public void llDialog(LSL_Key avatar, LSL_String message, LSL_List buttons, int chat_channel)
8091 { 8091 {
8092 IDialogModule dm = World.RequestModuleInterface<IDialogModule>(); 8092 IDialogModule dm = World.RequestModuleInterface<IDialogModule>();
8093 8093
@@ -13534,7 +13534,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
13534 ScriptSleep(m_sleepMsOnMapDestination); 13534 ScriptSleep(m_sleepMsOnMapDestination);
13535 } 13535 }
13536 13536
13537 public void llAddToLandBanList(string avatar, double hours) 13537 public void llAddToLandBanList(LSL_Key avatar, double hours)
13538 { 13538 {
13539 m_host.AddScriptLPS(1); 13539 m_host.AddScriptLPS(1);
13540 UUID key; 13540 UUID key;
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs
index 5e58067..4cb63b1 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs
@@ -41,10 +41,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
41 { 41 {
42 void state(string newState); 42 void state(string newState);
43 43
44 LSL_Integer llAbs(int i); 44 LSL_Integer llAbs(int val);
45 LSL_Float llAcos(double val); 45 LSL_Float llAcos(double val);
46 void llAddToLandBanList(string avatar, double hours); 46 //ApiDesc Sleep 0.1
47 void llAddToLandPassList(string avatar, double hours); 47 void llAddToLandBanList(LSL_Key avatarId, double hours);
48 //ApiDesc Sleep 0.1
49 void llAddToLandPassList(LSL_Key avatarId, double hours);
50 //ApiDesc Sleep 0.1
48 void llAdjustSoundVolume(double volume); 51 void llAdjustSoundVolume(double volume);
49 void llAllowInventoryDrop(int add); 52 void llAllowInventoryDrop(int add);
50 LSL_Float llAngleBetween(LSL_Rotation a, LSL_Rotation b); 53 LSL_Float llAngleBetween(LSL_Rotation a, LSL_Rotation b);
@@ -66,14 +69,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
66 LSL_Integer llCeil(double f); 69 LSL_Integer llCeil(double f);
67 void llClearCameraParams(); 70 void llClearCameraParams();
68 LSL_Integer llClearLinkMedia(LSL_Integer link, LSL_Integer face); 71 LSL_Integer llClearLinkMedia(LSL_Integer link, LSL_Integer face);
72 //ApiDesc Sleep 0.1
69 LSL_Integer llClearPrimMedia(LSL_Integer face); 73 LSL_Integer llClearPrimMedia(LSL_Integer face);
74 //ApiDesc Sleep 1.0
70 void llCloseRemoteDataChannel(string channel); 75 void llCloseRemoteDataChannel(string channel);
71 LSL_Float llCloud(LSL_Vector offset); 76 LSL_Float llCloud(LSL_Vector offset);
72 void llCollisionFilter(string name, string id, int accept); 77 void llCollisionFilter(string name, string id, int accept);
73 void llCollisionSound(string impact_sound, double impact_volume); 78 void llCollisionSound(string impact_sound, double impact_volume);
79 //ApiDesc Not Supported - does nothing
74 void llCollisionSprite(string impact_sprite); 80 void llCollisionSprite(string impact_sprite);
75 LSL_Float llCos(double f); 81 LSL_Float llCos(double f);
76 void llCreateLink(string target, int parent); 82 //ApiDesc Sleep 1.0
83 void llCreateLink(LSL_String targetId, LSL_Integer parent);
77 LSL_List llCSV2List(string src); 84 LSL_List llCSV2List(string src);
78 LSL_List llDeleteSubList(LSL_List src, int start, int end); 85 LSL_List llDeleteSubList(LSL_List src, int start, int end);
79 LSL_String llDeleteSubString(string src, int start, int end); 86 LSL_String llDeleteSubString(string src, int start, int end);
@@ -94,11 +101,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
94 LSL_Vector llDetectedTouchST(int index); 101 LSL_Vector llDetectedTouchST(int index);
95 LSL_Vector llDetectedTouchUV(int index); 102 LSL_Vector llDetectedTouchUV(int index);
96 LSL_Vector llDetectedVel(int number); 103 LSL_Vector llDetectedVel(int number);
97 void llDialog(string avatar, string message, LSL_List buttons, int chat_channel); 104 void llDialog(LSL_Key avatarId, LSL_String message, LSL_List buttons, int chat_channel);
98 void llDie(); 105 void llDie();
99 LSL_String llDumpList2String(LSL_List src, string seperator); 106 LSL_String llDumpList2String(LSL_List src, string seperator);
100 LSL_Integer llEdgeOfWorld(LSL_Vector pos, LSL_Vector dir); 107 LSL_Integer llEdgeOfWorld(LSL_Vector pos, LSL_Vector dir);
101 void llEjectFromLand(string pest); 108 //ApiDesc Sleep 1.0
109 void llEjectFromLand(LSL_Key avatarId);
102 void llEmail(string address, string subject, string message); 110 void llEmail(string address, string subject, string message);
103 LSL_String llEscapeURL(string url); 111 LSL_String llEscapeURL(string url);
104 LSL_Rotation llEuler2Rot(LSL_Vector v); 112 LSL_Rotation llEuler2Rot(LSL_Vector v);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index 11dfe0c..169a0f2 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -377,7 +377,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
377 public const int CHANGED_REGION_RESTART = 1024; 377 public const int CHANGED_REGION_RESTART = 1024;
378 public const int CHANGED_REGION_START = 1024; //LL Changed the constant from CHANGED_REGION_RESTART 378 public const int CHANGED_REGION_START = 1024; //LL Changed the constant from CHANGED_REGION_RESTART
379 public const int CHANGED_MEDIA = 2048; 379 public const int CHANGED_MEDIA = 2048;
380 //ApiDesc opensim specific
380 public const int CHANGED_ANIMATION = 16384; 381 public const int CHANGED_ANIMATION = 16384;
382 //ApiDesc opensim specific
381 public const int CHANGED_POSITION = 32768; 383 public const int CHANGED_POSITION = 32768;
382 384
383 public const int TYPE_INVALID = 0; 385 public const int TYPE_INVALID = 0;
@@ -430,6 +432,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
430 public const int PRIM_FLEXIBLE = 21; 432 public const int PRIM_FLEXIBLE = 21;
431 public const int PRIM_TEXGEN = 22; 433 public const int PRIM_TEXGEN = 22;
432 public const int PRIM_POINT_LIGHT = 23; // Huh? 434 public const int PRIM_POINT_LIGHT = 23; // Huh?
435 //ApiDesc not supported
433 public const int PRIM_CAST_SHADOWS = 24; // Not implemented, here for completeness sake 436 public const int PRIM_CAST_SHADOWS = 24; // Not implemented, here for completeness sake
434 public const int PRIM_GLOW = 25; 437 public const int PRIM_GLOW = 25;
435 public const int PRIM_TEXT = 26; 438 public const int PRIM_TEXT = 26;
@@ -445,7 +448,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
445 public const int PRIM_SPECULAR = 36; 448 public const int PRIM_SPECULAR = 36;
446 public const int PRIM_NORMAL = 37; 449 public const int PRIM_NORMAL = 37;
447 public const int PRIM_ALPHA_MODE = 38; 450 public const int PRIM_ALPHA_MODE = 38;
451 //ApiDesc not supported
448 public const int PRIM_ALLOW_UNSIT = 39; // experiences related. unsupported 452 public const int PRIM_ALLOW_UNSIT = 39; // experiences related. unsupported
453 //ApiDesc not supported
449 public const int PRIM_SCRIPTED_SIT_ONLY = 40; // experiences related. unsupported 454 public const int PRIM_SCRIPTED_SIT_ONLY = 40; // experiences related. unsupported
450 public const int PRIM_SIT_TARGET = 41; 455 public const int PRIM_SIT_TARGET = 41;
451 456
@@ -659,20 +664,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
659 public const int OBJECT_ATTACHED_SLOTS_AVAILABLE = 35; 664 public const int OBJECT_ATTACHED_SLOTS_AVAILABLE = 35;
660 665
661 // Pathfinding types 666 // Pathfinding types
667 //ApiDesc not supported
662 public const int OPT_OTHER = -1; 668 public const int OPT_OTHER = -1;
669 //ApiDesc not supported
663 public const int OPT_LEGACY_LINKSET = 0; 670 public const int OPT_LEGACY_LINKSET = 0;
671 //ApiDesc not supported
664 public const int OPT_AVATAR = 1; 672 public const int OPT_AVATAR = 1;
673 //ApiDesc not supported
665 public const int OPT_CHARACTER = 2; 674 public const int OPT_CHARACTER = 2;
675 //ApiDesc not supported
666 public const int OPT_WALKABLE = 3; 676 public const int OPT_WALKABLE = 3;
677 //ApiDesc not supported
667 public const int OPT_STATIC_OBSTACLE = 4; 678 public const int OPT_STATIC_OBSTACLE = 4;
679 //ApiDesc not supported
668 public const int OPT_MATERIAL_VOLUME = 5; 680 public const int OPT_MATERIAL_VOLUME = 5;
681 //ApiDesc not supported
669 public const int OPT_EXCLUSION_VOLUME = 6; 682 public const int OPT_EXCLUSION_VOLUME = 6;
670 683
671 // for llGetAgentList 684 // for llGetAgentList
672 public const int AGENT_LIST_PARCEL = 1; 685 public const int AGENT_LIST_PARCEL = 0x1;
673 public const int AGENT_LIST_PARCEL_OWNER = 2; 686 public const int AGENT_LIST_PARCEL_OWNER = 2;
674 public const int AGENT_LIST_REGION = 4; 687 public const int AGENT_LIST_REGION = 4;
675 public const int AGENT_LIST_EXCLUDENPC = 0x4000000; // our flag, not SL and it is a bit mask 688 public const int AGENT_LIST_EXCLUDENPC = 0x4000000;
676 689
677 // Can not be public const? 690 // Can not be public const?
678 public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0); 691 public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0);
@@ -875,11 +888,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
875 888
876 //ApiDesc osTeleportObject no flags 889 //ApiDesc osTeleportObject no flags
877 public const int OSTPOBJ_NONE = 0x0; 890 public const int OSTPOBJ_NONE = 0x0;
878 //ApiDesc osTeleportObject flag stop at destination 891 //ApiDesc osTeleportObject flag: stop at destination
879 public const int OSTPOBJ_STOPATTARGET = 0x1; 892 public const int OSTPOBJ_STOPATTARGET = 0x1;
880 //ApiDesc osTeleportObject flag stop at jump point if tp fails 893 //ApiDesc osTeleportObject flag: stop at jump point if tp fails
881 public const int OSTPOBJ_STOPONFAIL = 0x2; 894 public const int OSTPOBJ_STOPONFAIL = 0x2;
882 //ApiDesc osTeleportObject flag the rotation is the final rotation, otherwise is a added rotation 895 //ApiDesc osTeleportObject flag: the rotation is the final rotation, otherwise is a added rotation
883 public const int OSTPOBJ_SETROT = 0x4; 896 public const int OSTPOBJ_SETROT = 0x4;
884 897
885 // Constants for Windlight 898 // Constants for Windlight
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
index ebdd017..09f77d1 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
@@ -210,7 +210,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
210 return m_LSL_Functions.llCos(f); 210 return m_LSL_Functions.llCos(f);
211 } 211 }
212 212
213 public void llCreateLink(string target, int parent) 213 public void llCreateLink(LSL_String target, LSL_Integer parent)
214 { 214 {
215 m_LSL_Functions.llCreateLink(target, parent); 215 m_LSL_Functions.llCreateLink(target, parent);
216 } 216 }
@@ -315,7 +315,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
315 return m_LSL_Functions.llDetectedVel(number); 315 return m_LSL_Functions.llDetectedVel(number);
316 } 316 }
317 317
318 public void llDialog(string avatar, string message, LSL_List buttons, int chat_channel) 318 public void llDialog(LSL_Key avatar, LSL_String message, LSL_List buttons, int chat_channel)
319 { 319 {
320 m_LSL_Functions.llDialog(avatar, message, buttons, chat_channel); 320 m_LSL_Functions.llDialog(avatar, message, buttons, chat_channel);
321 } 321 }
@@ -336,7 +336,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
336 return m_LSL_Functions.llEdgeOfWorld(pos, dir); 336 return m_LSL_Functions.llEdgeOfWorld(pos, dir);
337 } 337 }
338 338
339 public void llEjectFromLand(string pest) 339 public void llEjectFromLand(LSL_Key pest)
340 { 340 {
341 m_LSL_Functions.llEjectFromLand(pest); 341 m_LSL_Functions.llEjectFromLand(pest);
342 } 342 }