aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorMelanie Thielker2010-06-02 01:01:56 +0200
committerMelanie2010-06-02 01:21:50 +0100
commit53e96dccef005237a4d5afe477e19ab1837a5c7c (patch)
tree6d96c947e8ed958fe70e947857554cbd36df7a38 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentOne should not lock null objects. (diff)
downloadopensim-SC-53e96dccef005237a4d5afe477e19ab1837a5c7c.zip
opensim-SC-53e96dccef005237a4d5afe477e19ab1837a5c7c.tar.gz
opensim-SC-53e96dccef005237a4d5afe477e19ab1837a5c7c.tar.bz2
opensim-SC-53e96dccef005237a4d5afe477e19ab1837a5c7c.tar.xz
Add two new osFunctions:
list osGetPrimititveParams(key prim, list rules); osSetPrimitiveParams(key prim, list rules);
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs18
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs16
2 files changed, 34 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 6e9a823..a8a3595 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -9788,6 +9788,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9788 ScriptSleep(100); 9788 ScriptSleep(100);
9789 return tid.ToString(); 9789 return tid.ToString();
9790 } 9790 }
9791
9792 public void SetPrimitiveParamsEx(LSL_Key prim, LSL_List rules)
9793 {
9794 SceneObjectPart obj = World.GetSceneObjectPart(new UUID(prim));
9795 if (obj == null)
9796 return;
9797
9798 SetPrimParams(obj, rules);
9799 }
9800
9801 public LSL_List GetLinkPrimitiveParamsEx(LSL_Key prim, LSL_List rules)
9802 {
9803 SceneObjectPart obj = World.GetSceneObjectPart(new UUID(prim));
9804 if (obj == null)
9805 return new LSL_List();
9806
9807 return GetLinkPrimitiveParams(obj, rules);
9808 }
9791 } 9809 }
9792 9810
9793 public class NotecardCache 9811 public class NotecardCache
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 7ada738..dde664e 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2186,5 +2186,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2186 } 2186 }
2187 } 2187 }
2188 } 2188 }
2189
2190 public LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules)
2191 {
2192 CheckThreatLevel(ThreatLevel.High, "osGetPrimitiveParams");
2193 m_host.AddScriptLPS(1);
2194
2195 return m_LSL_Api.GetLinkPrimitiveParamsEx(prim, rules);
2196 }
2197
2198 public void osSetPrimitiveParams(LSL_Key prim, LSL_List rules)
2199 {
2200 CheckThreatLevel(ThreatLevel.High, "osGetPrimitiveParams");
2201 m_host.AddScriptLPS(1);
2202
2203 m_LSL_Api.SetPrimitiveParamsEx(prim, rules);
2204 }
2189 } 2205 }
2190} 2206}