aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2018-12-28 14:40:51 +0000
committerUbitUmarov2018-12-28 14:40:51 +0000
commitc14209e362a3994ecf078fbe251968e380c1bd47 (patch)
treef0faf6201ce0fe356b570ed9335aac22a3ce4a26
parentmissing file (diff)
downloadopensim-SC-c14209e362a3994ecf078fbe251968e380c1bd47.zip
opensim-SC-c14209e362a3994ecf078fbe251968e380c1bd47.tar.gz
opensim-SC-c14209e362a3994ecf078fbe251968e380c1bd47.tar.bz2
opensim-SC-c14209e362a3994ecf078fbe251968e380c1bd47.tar.xz
add some LSL
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs32
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs3
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs15
-rw-r--r--bin/ScriptSyntax.xml53
4 files changed, 85 insertions, 18 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 4d71cc8..c757cd0 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4224,6 +4224,38 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4224 } 4224 }
4225 } 4225 }
4226 4226
4227 public void llStartObjectAnimation(string anim)
4228 {
4229 m_host.AddScriptLPS(1);
4230
4231 // Do NOT try to parse UUID, animations cannot be triggered by ID
4232 UUID animID = ScriptUtils.GetAssetIdFromItemName(m_host, anim, (int)AssetType.Animation);
4233 if (animID == UUID.Zero)
4234 return;
4235 m_host.AddAnimation(animID, anim);
4236 }
4237
4238 public void llStopObjectAnimation(string anim)
4239 {
4240 m_host.AddScriptLPS(1);
4241 UUID animID = ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, anim, AssetType.Animation);
4242 if (animID != UUID.Zero)
4243 m_host.RemoveAnimation(animID);
4244 }
4245
4246 public LSL_List llGetObjectAnimationNames()
4247 {
4248 m_host.AddScriptLPS(1);
4249 LSL_List ret = new LSL_List();
4250
4251 if(m_host.AnimationsNames == null || m_host.AnimationsNames.Count == 0)
4252 return ret;
4253
4254 foreach (string name in m_host.AnimationsNames.Values)
4255 ret.Add(new LSL_String(name));
4256 return ret;
4257 }
4258
4227 public void llPointAt(LSL_Vector pos) 4259 public void llPointAt(LSL_Vector pos)
4228 { 4260 {
4229 m_host.AddScriptLPS(1); 4261 m_host.AddScriptLPS(1);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs
index 101e69d..8e1192c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs
@@ -409,6 +409,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
409 LSL_Float llSqrt(double f); 409 LSL_Float llSqrt(double f);
410 void llStartAnimation(string anim); 410 void llStartAnimation(string anim);
411 void llStopAnimation(string anim); 411 void llStopAnimation(string anim);
412 void llStartObjectAnimation(string anim);
413 void llStopObjectAnimation(string anim);
414 LSL_List llGetObjectAnimationNames();
412 void llStopHover(); 415 void llStopHover();
413 void llStopLookAt(); 416 void llStopLookAt();
414 void llStopMoveToTarget(); 417 void llStopMoveToTarget();
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
index 0704378..0f10d8d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
@@ -1836,6 +1836,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
1836 m_LSL_Functions.llStopAnimation(anim); 1836 m_LSL_Functions.llStopAnimation(anim);
1837 } 1837 }
1838 1838
1839 public void llStartObjectAnimation(string anim)
1840 {
1841 m_LSL_Functions.llStartObjectAnimation(anim);
1842 }
1843
1844 public void llStopObjectAnimation(string anim)
1845 {
1846 m_LSL_Functions.llStopObjectAnimation(anim);
1847 }
1848
1849 public LSL_List llGetObjectAnimationNames()
1850 {
1851 return m_LSL_Functions.llGetObjectAnimationNames();
1852 }
1853
1839 public void llStopHover() 1854 public void llStopHover()
1840 { 1855 {
1841 m_LSL_Functions.llStopHover(); 1856 m_LSL_Functions.llStopHover();
diff --git a/bin/ScriptSyntax.xml b/bin/ScriptSyntax.xml
index 60daa89..862a66d 100644
--- a/bin/ScriptSyntax.xml
+++ b/bin/ScriptSyntax.xml
@@ -1,4 +1,4 @@
141ccf83c-178f-6070-7960-1448d28dcdab 1a0b4b514-3c14-6b98-ca98-e18a79e9792f
2<llsd><map><key>llsd-lsl-syntax-version</key><integer>2</integer> 2<llsd><map><key>llsd-lsl-syntax-version</key><integer>2</integer>
3<key>controls</key> 3<key>controls</key>
4<map> 4<map>
@@ -4063,6 +4063,11 @@
4063 <key>return</key><string>integer</string> 4063 <key>return</key><string>integer</string>
4064 <key>arguments</key><undef/> 4064 <key>arguments</key><undef/>
4065 </map> 4065 </map>
4066 <key>llGetObjectAnimationNames</key>
4067 <map>
4068 <key>return</key><string>list</string>
4069 <key>arguments</key><undef/>
4070 </map>
4066 <key>llGetObjectDesc</key> 4071 <key>llGetObjectDesc</key>
4067 <map> 4072 <map>
4068 <key>return</key><string>string</string> 4073 <key>return</key><string>string</string>
@@ -5797,6 +5802,12 @@
5797 <map><key>anim</key><map><key>type</key><string>string</string></map></map> 5802 <map><key>anim</key><map><key>type</key><string>string</string></map></map>
5798 </array> 5803 </array>
5799 </map> 5804 </map>
5805 <key>llStartObjectAnimation</key>
5806 <map>
5807 <key>arguments</key><array>
5808 <map><key>anim</key><map><key>type</key><string>string</string></map></map>
5809 </array>
5810 </map>
5800 <key>llStopAnimation</key> 5811 <key>llStopAnimation</key>
5801 <map> 5812 <map>
5802 <key>arguments</key><array> 5813 <key>arguments</key><array>
@@ -5815,6 +5826,12 @@
5815 <map> 5826 <map>
5816 <key>arguments</key><undef/> 5827 <key>arguments</key><undef/>
5817 </map> 5828 </map>
5829 <key>llStopObjectAnimation</key>
5830 <map>
5831 <key>arguments</key><array>
5832 <map><key>anim</key><map><key>type</key><string>string</string></map></map>
5833 </array>
5834 </map>
5818 <key>llStopPointAt</key> 5835 <key>llStopPointAt</key>
5819 <map> 5836 <map>
5820 <key>arguments</key><undef/> 5837 <key>arguments</key><undef/>
@@ -6099,15 +6116,15 @@
6099 <key>arguments</key><array> 6116 <key>arguments</key><array>
6100 <map><key>va</key><map><key>type</key><string>vector</string></map></map> 6117 <map><key>va</key><map><key>type</key><string>vector</string></map></map>
6101 <map><key>vb</key><map><key>type</key><string>vector</string></map></map> 6118 <map><key>vb</key><map><key>type</key><string>vector</string></map></map>
6119 <map><key>margin</key><map><key>type</key><string>float</string></map></map>
6102 </array> 6120 </array>
6103 </map> 6121 </map>
6104 <key>osApproxEquals</key> 6122 <key>osApproxEquals</key>
6105 <map> 6123 <map>
6106 <key>return</key><string>integer</string> 6124 <key>return</key><string>integer</string>
6107 <key>arguments</key><array> 6125 <key>arguments</key><array>
6108 <map><key>a</key><map><key>type</key><string>float</string></map></map> 6126 <map><key>va</key><map><key>type</key><string>vector</string></map></map>
6109 <map><key>b</key><map><key>type</key><string>float</string></map></map> 6127 <map><key>vb</key><map><key>type</key><string>vector</string></map></map>
6110 <map><key>margin</key><map><key>type</key><string>float</string></map></map>
6111 </array> 6128 </array>
6112 </map> 6129 </map>
6113 <key>osApproxEquals</key> 6130 <key>osApproxEquals</key>
@@ -6116,15 +6133,15 @@
6116 <key>arguments</key><array> 6133 <key>arguments</key><array>
6117 <map><key>a</key><map><key>type</key><string>float</string></map></map> 6134 <map><key>a</key><map><key>type</key><string>float</string></map></map>
6118 <map><key>b</key><map><key>type</key><string>float</string></map></map> 6135 <map><key>b</key><map><key>type</key><string>float</string></map></map>
6136 <map><key>margin</key><map><key>type</key><string>float</string></map></map>
6119 </array> 6137 </array>
6120 </map> 6138 </map>
6121 <key>osApproxEquals</key> 6139 <key>osApproxEquals</key>
6122 <map> 6140 <map>
6123 <key>return</key><string>integer</string> 6141 <key>return</key><string>integer</string>
6124 <key>arguments</key><array> 6142 <key>arguments</key><array>
6125 <map><key>va</key><map><key>type</key><string>vector</string></map></map> 6143 <map><key>a</key><map><key>type</key><string>float</string></map></map>
6126 <map><key>vb</key><map><key>type</key><string>vector</string></map></map> 6144 <map><key>b</key><map><key>type</key><string>float</string></map></map>
6127 <map><key>margin</key><map><key>type</key><string>float</string></map></map>
6128 </array> 6145 </array>
6129 </map> 6146 </map>
6130 <key>osApproxEquals</key> 6147 <key>osApproxEquals</key>
@@ -6267,6 +6284,8 @@
6267 <key>return</key><string>string</string> 6284 <key>return</key><string>string</string>
6268 <key>arguments</key><array> 6285 <key>arguments</key><array>
6269 <map><key>drawList</key><map><key>type</key><string>string</string></map></map> 6286 <map><key>drawList</key><map><key>type</key><string>string</string></map></map>
6287 <map><key>startX</key><map><key>type</key><string>integer</string></map></map>
6288 <map><key>startY</key><map><key>type</key><string>integer</string></map></map>
6270 <map><key>endX</key><map><key>type</key><string>integer</string></map></map> 6289 <map><key>endX</key><map><key>type</key><string>integer</string></map></map>
6271 <map><key>endY</key><map><key>type</key><string>integer</string></map></map> 6290 <map><key>endY</key><map><key>type</key><string>integer</string></map></map>
6272 </array> 6291 </array>
@@ -6276,8 +6295,6 @@
6276 <key>return</key><string>string</string> 6295 <key>return</key><string>string</string>
6277 <key>arguments</key><array> 6296 <key>arguments</key><array>
6278 <map><key>drawList</key><map><key>type</key><string>string</string></map></map> 6297 <map><key>drawList</key><map><key>type</key><string>string</string></map></map>
6279 <map><key>startX</key><map><key>type</key><string>integer</string></map></map>
6280 <map><key>startY</key><map><key>type</key><string>integer</string></map></map>
6281 <map><key>endX</key><map><key>type</key><string>integer</string></map></map> 6298 <map><key>endX</key><map><key>type</key><string>integer</string></map></map>
6282 <map><key>endY</key><map><key>type</key><string>integer</string></map></map> 6299 <map><key>endY</key><map><key>type</key><string>integer</string></map></map>
6283 </array> 6300 </array>
@@ -6416,13 +6433,13 @@
6416 <map> 6433 <map>
6417 <key>arguments</key><array> 6434 <key>arguments</key><array>
6418 <map><key>avatar</key><map><key>type</key><string>string</string></map></map> 6435 <map><key>avatar</key><map><key>type</key><string>string</string></map></map>
6436 <map><key>target</key><map><key>type</key><string>string</string></map></map>
6419 </array> 6437 </array>
6420 </map> 6438 </map>
6421 <key>osForceOtherSit</key> 6439 <key>osForceOtherSit</key>
6422 <map> 6440 <map>
6423 <key>arguments</key><array> 6441 <key>arguments</key><array>
6424 <map><key>avatar</key><map><key>type</key><string>string</string></map></map> 6442 <map><key>avatar</key><map><key>type</key><string>string</string></map></map>
6425 <map><key>target</key><map><key>type</key><string>string</string></map></map>
6426 </array> 6443 </array>
6427 </map> 6444 </map>
6428 <key>osFormatString</key> 6445 <key>osFormatString</key>
@@ -6822,6 +6839,7 @@
6822 <map><key>name</key><map><key>type</key><string>string</string></map></map> 6839 <map><key>name</key><map><key>type</key><string>string</string></map></map>
6823 <map><key>position</key><map><key>type</key><string>vector</string></map></map> 6840 <map><key>position</key><map><key>type</key><string>vector</string></map></map>
6824 <map><key>notecard</key><map><key>type</key><string>string</string></map></map> 6841 <map><key>notecard</key><map><key>type</key><string>string</string></map></map>
6842 <map><key>options</key><map><key>type</key><string>integer</string></map></map>
6825 </array> 6843 </array>
6826 </map> 6844 </map>
6827 <key>osNpcCreate</key> 6845 <key>osNpcCreate</key>
@@ -6832,7 +6850,6 @@
6832 <map><key>name</key><map><key>type</key><string>string</string></map></map> 6850 <map><key>name</key><map><key>type</key><string>string</string></map></map>
6833 <map><key>position</key><map><key>type</key><string>vector</string></map></map> 6851 <map><key>position</key><map><key>type</key><string>vector</string></map></map>
6834 <map><key>notecard</key><map><key>type</key><string>string</string></map></map> 6852 <map><key>notecard</key><map><key>type</key><string>string</string></map></map>
6835 <map><key>options</key><map><key>type</key><string>integer</string></map></map>
6836 </array> 6853 </array>
6837 </map> 6854 </map>
6838 <key>osNpcGetOwner</key> 6855 <key>osNpcGetOwner</key>
@@ -7415,8 +7432,6 @@
7415 <key>arguments</key><array> 7432 <key>arguments</key><array>
7416 <map><key>src</key><map><key>type</key><string>string</string></map></map> 7433 <map><key>src</key><map><key>type</key><string>string</string></map></map>
7417 <map><key>value</key><map><key>type</key><string>string</string></map></map> 7434 <map><key>value</key><map><key>type</key><string>string</string></map></map>
7418 <map><key>start</key><map><key>type</key><string>integer</string></map></map>
7419 <map><key>count</key><map><key>type</key><string>integer</string></map></map>
7420 <map><key>ignorecase</key><map><key>type</key><string>integer</string></map></map> 7435 <map><key>ignorecase</key><map><key>type</key><string>integer</string></map></map>
7421 </array> 7436 </array>
7422 </map> 7437 </map>
@@ -7426,6 +7441,8 @@
7426 <key>arguments</key><array> 7441 <key>arguments</key><array>
7427 <map><key>src</key><map><key>type</key><string>string</string></map></map> 7442 <map><key>src</key><map><key>type</key><string>string</string></map></map>
7428 <map><key>value</key><map><key>type</key><string>string</string></map></map> 7443 <map><key>value</key><map><key>type</key><string>string</string></map></map>
7444 <map><key>start</key><map><key>type</key><string>integer</string></map></map>
7445 <map><key>count</key><map><key>type</key><string>integer</string></map></map>
7429 <map><key>ignorecase</key><map><key>type</key><string>integer</string></map></map> 7446 <map><key>ignorecase</key><map><key>type</key><string>integer</string></map></map>
7430 </array> 7447 </array>
7431 </map> 7448 </map>
@@ -7520,6 +7537,8 @@
7520 <map> 7537 <map>
7521 <key>arguments</key><array> 7538 <key>arguments</key><array>
7522 <map><key>agent</key><map><key>type</key><string>string</string></map></map> 7539 <map><key>agent</key><map><key>type</key><string>string</string></map></map>
7540 <map><key>regionX</key><map><key>type</key><string>integer</string></map></map>
7541 <map><key>regionY</key><map><key>type</key><string>integer</string></map></map>
7523 <map><key>position</key><map><key>type</key><string>vector</string></map></map> 7542 <map><key>position</key><map><key>type</key><string>vector</string></map></map>
7524 <map><key>lookat</key><map><key>type</key><string>vector</string></map></map> 7543 <map><key>lookat</key><map><key>type</key><string>vector</string></map></map>
7525 </array> 7544 </array>
@@ -7528,8 +7547,6 @@
7528 <map> 7547 <map>
7529 <key>arguments</key><array> 7548 <key>arguments</key><array>
7530 <map><key>agent</key><map><key>type</key><string>string</string></map></map> 7549 <map><key>agent</key><map><key>type</key><string>string</string></map></map>
7531 <map><key>regionX</key><map><key>type</key><string>integer</string></map></map>
7532 <map><key>regionY</key><map><key>type</key><string>integer</string></map></map>
7533 <map><key>position</key><map><key>type</key><string>vector</string></map></map> 7550 <map><key>position</key><map><key>type</key><string>vector</string></map></map>
7534 <map><key>lookat</key><map><key>type</key><string>vector</string></map></map> 7551 <map><key>lookat</key><map><key>type</key><string>vector</string></map></map>
7535 </array> 7552 </array>
@@ -7547,7 +7564,8 @@
7547 <key>osTeleportOwner</key> 7564 <key>osTeleportOwner</key>
7548 <map> 7565 <map>
7549 <key>arguments</key><array> 7566 <key>arguments</key><array>
7550 <map><key>regionName</key><map><key>type</key><string>string</string></map></map> 7567 <map><key>regionX</key><map><key>type</key><string>integer</string></map></map>
7568 <map><key>regionY</key><map><key>type</key><string>integer</string></map></map>
7551 <map><key>position</key><map><key>type</key><string>vector</string></map></map> 7569 <map><key>position</key><map><key>type</key><string>vector</string></map></map>
7552 <map><key>lookat</key><map><key>type</key><string>vector</string></map></map> 7570 <map><key>lookat</key><map><key>type</key><string>vector</string></map></map>
7553 </array> 7571 </array>
@@ -7555,8 +7573,7 @@
7555 <key>osTeleportOwner</key> 7573 <key>osTeleportOwner</key>
7556 <map> 7574 <map>
7557 <key>arguments</key><array> 7575 <key>arguments</key><array>
7558 <map><key>regionX</key><map><key>type</key><string>integer</string></map></map> 7576 <map><key>regionName</key><map><key>type</key><string>string</string></map></map>
7559 <map><key>regionY</key><map><key>type</key><string>integer</string></map></map>
7560 <map><key>position</key><map><key>type</key><string>vector</string></map></map> 7577 <map><key>position</key><map><key>type</key><string>vector</string></map></map>
7561 <map><key>lookat</key><map><key>type</key><string>vector</string></map></map> 7578 <map><key>lookat</key><map><key>type</key><string>vector</string></map></map>
7562 </array> 7579 </array>