diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs | 95 |
1 files changed, 71 insertions, 24 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs index 35aaf01..2745637 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Diagnostics; //for [DebuggerNonUserCode] | ||
29 | using System.Runtime.Remoting.Lifetime; | 30 | using System.Runtime.Remoting.Lifetime; |
30 | using System.Threading; | 31 | using System.Threading; |
31 | using System.Reflection; | 32 | using System.Reflection; |
@@ -314,6 +315,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
314 | m_LSL_Functions.llDialog(avatar, message, buttons, chat_channel); | 315 | m_LSL_Functions.llDialog(avatar, message, buttons, chat_channel); |
315 | } | 316 | } |
316 | 317 | ||
318 | [DebuggerNonUserCode] | ||
317 | public void llDie() | 319 | public void llDie() |
318 | { | 320 | { |
319 | m_LSL_Functions.llDie(); | 321 | m_LSL_Functions.llDie(); |
@@ -479,6 +481,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
479 | return m_LSL_Functions.llGetFreeMemory(); | 481 | return m_LSL_Functions.llGetFreeMemory(); |
480 | } | 482 | } |
481 | 483 | ||
484 | public LSL_Integer llGetUsedMemory() | ||
485 | { | ||
486 | return m_LSL_Functions.llGetUsedMemory(); | ||
487 | } | ||
488 | |||
482 | public LSL_Integer llGetFreeURLs() | 489 | public LSL_Integer llGetFreeURLs() |
483 | { | 490 | { |
484 | return m_LSL_Functions.llGetFreeURLs(); | 491 | return m_LSL_Functions.llGetFreeURLs(); |
@@ -559,11 +566,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
559 | return m_LSL_Functions.llGetLinkNumberOfSides(link); | 566 | return m_LSL_Functions.llGetLinkNumberOfSides(link); |
560 | } | 567 | } |
561 | 568 | ||
562 | public void llSetKeyframedMotion(LSL_List frames, LSL_List options) | ||
563 | { | ||
564 | m_LSL_Functions.llSetKeyframedMotion(frames, options); | ||
565 | } | ||
566 | |||
567 | public LSL_Integer llGetListEntryType(LSL_List src, int index) | 569 | public LSL_Integer llGetListEntryType(LSL_List src, int index) |
568 | { | 570 | { |
569 | return m_LSL_Functions.llGetListEntryType(src, index); | 571 | return m_LSL_Functions.llGetListEntryType(src, index); |
@@ -859,11 +861,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
859 | return m_LSL_Functions.llGetUnixTime(); | 861 | return m_LSL_Functions.llGetUnixTime(); |
860 | } | 862 | } |
861 | 863 | ||
862 | public LSL_Integer llGetUsedMemory() | ||
863 | { | ||
864 | return m_LSL_Functions.llGetUsedMemory(); | ||
865 | } | ||
866 | |||
867 | public LSL_Vector llGetVel() | 864 | public LSL_Vector llGetVel() |
868 | { | 865 | { |
869 | return m_LSL_Functions.llGetVel(); | 866 | return m_LSL_Functions.llGetVel(); |
@@ -884,9 +881,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
884 | m_LSL_Functions.llGiveInventoryList(destination, category, inventory); | 881 | m_LSL_Functions.llGiveInventoryList(destination, category, inventory); |
885 | } | 882 | } |
886 | 883 | ||
887 | public void llGiveMoney(string destination, int amount) | 884 | public LSL_Integer llGiveMoney(string destination, int amount) |
888 | { | 885 | { |
889 | m_LSL_Functions.llGiveMoney(destination, amount); | 886 | return m_LSL_Functions.llGiveMoney(destination, amount); |
890 | } | 887 | } |
891 | 888 | ||
892 | public LSL_String llTransferLindenDollars(string destination, int amount) | 889 | public LSL_String llTransferLindenDollars(string destination, int amount) |
@@ -1558,11 +1555,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
1558 | m_LSL_Functions.llSetForceAndTorque(force, torque, local); | 1555 | m_LSL_Functions.llSetForceAndTorque(force, torque, local); |
1559 | } | 1556 | } |
1560 | 1557 | ||
1561 | public void llSetVelocity(LSL_Vector force, int local) | ||
1562 | { | ||
1563 | m_LSL_Functions.llSetVelocity(force, local); | ||
1564 | } | ||
1565 | |||
1566 | public void llSetAngularVelocity(LSL_Vector force, int local) | 1558 | public void llSetAngularVelocity(LSL_Vector force, int local) |
1567 | { | 1559 | { |
1568 | m_LSL_Functions.llSetAngularVelocity(force, local); | 1560 | m_LSL_Functions.llSetAngularVelocity(force, local); |
@@ -1643,6 +1635,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
1643 | m_LSL_Functions.llSetPos(pos); | 1635 | m_LSL_Functions.llSetPos(pos); |
1644 | } | 1636 | } |
1645 | 1637 | ||
1638 | public LSL_Integer llSetRegionPos(LSL_Vector pos) | ||
1639 | { | ||
1640 | return m_LSL_Functions.llSetRegionPos(pos); | ||
1641 | } | ||
1642 | |||
1646 | public void llSetPrimitiveParams(LSL_List rules) | 1643 | public void llSetPrimitiveParams(LSL_List rules) |
1647 | { | 1644 | { |
1648 | m_LSL_Functions.llSetPrimitiveParams(rules); | 1645 | m_LSL_Functions.llSetPrimitiveParams(rules); |
@@ -1658,11 +1655,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
1658 | m_LSL_Functions.llSetPrimURL(url); | 1655 | m_LSL_Functions.llSetPrimURL(url); |
1659 | } | 1656 | } |
1660 | 1657 | ||
1661 | public LSL_Integer llSetRegionPos(LSL_Vector pos) | ||
1662 | { | ||
1663 | return m_LSL_Functions.llSetRegionPos(pos); | ||
1664 | } | ||
1665 | |||
1666 | public void llSetRemoteScriptAccessPin(int pin) | 1658 | public void llSetRemoteScriptAccessPin(int pin) |
1667 | { | 1659 | { |
1668 | m_LSL_Functions.llSetRemoteScriptAccessPin(pin); | 1660 | m_LSL_Functions.llSetRemoteScriptAccessPin(pin); |
@@ -2008,9 +2000,64 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
2008 | return m_LSL_Functions.llClearLinkMedia(link, face); | 2000 | return m_LSL_Functions.llClearLinkMedia(link, face); |
2009 | } | 2001 | } |
2010 | 2002 | ||
2011 | public void print(string str) | 2003 | public LSL_Integer llGetLinkNumberOfSides(LSL_Integer link) |
2004 | { | ||
2005 | return m_LSL_Functions.llGetLinkNumberOfSides(link); | ||
2006 | } | ||
2007 | |||
2008 | public void llSetKeyframedMotion(LSL_List frames, LSL_List options) | ||
2009 | { | ||
2010 | m_LSL_Functions.llSetKeyframedMotion(frames, options); | ||
2011 | } | ||
2012 | |||
2013 | public void llSetPhysicsMaterial(int material_bits, float material_gravity_modifier, float material_restitution, float material_friction, float material_density) | ||
2014 | { | ||
2015 | m_LSL_Functions.llSetPhysicsMaterial(material_bits, material_gravity_modifier, material_restitution, material_friction, material_density); | ||
2016 | } | ||
2017 | |||
2018 | public LSL_List llGetPhysicsMaterial() | ||
2019 | { | ||
2020 | return m_LSL_Functions.llGetPhysicsMaterial(); | ||
2021 | } | ||
2022 | |||
2023 | public void llSetAnimationOverride(LSL_String animState, LSL_String anim) | ||
2024 | { | ||
2025 | m_LSL_Functions.llSetAnimationOverride(animState, anim); | ||
2026 | } | ||
2027 | |||
2028 | public void llResetAnimationOverride(LSL_String anim_state) | ||
2029 | { | ||
2030 | m_LSL_Functions.llResetAnimationOverride(anim_state); | ||
2031 | } | ||
2032 | |||
2033 | public LSL_String llGetAnimationOverride(LSL_String anim_state) | ||
2034 | { | ||
2035 | return m_LSL_Functions.llGetAnimationOverride(anim_state); | ||
2036 | } | ||
2037 | |||
2038 | public LSL_String llJsonGetValue(LSL_String json, LSL_List specifiers) | ||
2039 | { | ||
2040 | return m_LSL_Functions.llJsonGetValue(json, specifiers); | ||
2041 | } | ||
2042 | |||
2043 | public LSL_List llJson2List(LSL_String json) | ||
2044 | { | ||
2045 | return m_LSL_Functions.llJson2List(json); | ||
2046 | } | ||
2047 | |||
2048 | public LSL_String llList2Json(LSL_String type, LSL_List values) | ||
2049 | { | ||
2050 | return m_LSL_Functions.llList2Json(type, values); | ||
2051 | } | ||
2052 | |||
2053 | public LSL_String llJsonSetValue(LSL_String json, LSL_List specifiers, LSL_String value) | ||
2054 | { | ||
2055 | return m_LSL_Functions.llJsonSetValue(json, specifiers, value); | ||
2056 | } | ||
2057 | |||
2058 | public LSL_String llJsonValueType(LSL_String json, LSL_List specifiers) | ||
2012 | { | 2059 | { |
2013 | m_LSL_Functions.print(str); | 2060 | return m_LSL_Functions.llJsonValueType(json, specifiers); |
2014 | } | 2061 | } |
2015 | } | 2062 | } |
2016 | } | 2063 | } |