aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
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 8cc5e25..481a3e6 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -10261,6 +10261,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10261 ScriptSleep(100); 10261 ScriptSleep(100);
10262 return tid.ToString(); 10262 return tid.ToString();
10263 } 10263 }
10264
10265 public void SetPrimitiveParamsEx(LSL_Key prim, LSL_List rules)
10266 {
10267 SceneObjectPart obj = World.GetSceneObjectPart(new UUID(prim));
10268 if (obj == null)
10269 return;
10270
10271 SetPrimParams(obj, rules);
10272 }
10273
10274 public LSL_List GetLinkPrimitiveParamsEx(LSL_Key prim, LSL_List rules)
10275 {
10276 SceneObjectPart obj = World.GetSceneObjectPart(new UUID(prim));
10277 if (obj == null)
10278 return new LSL_List();
10279
10280 return GetLinkPrimitiveParams(obj, rules);
10281 }
10264 } 10282 }
10265 10283
10266 public class NotecardCache 10284 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 2e0456e..f2a2f32 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2190,5 +2190,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2190 } 2190 }
2191 } 2191 }
2192 } 2192 }
2193
2194 public LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules)
2195 {
2196 CheckThreatLevel(ThreatLevel.High, "osGetPrimitiveParams");
2197 m_host.AddScriptLPS(1);
2198
2199 return m_LSL_Api.GetLinkPrimitiveParamsEx(prim, rules);
2200 }
2201
2202 public void osSetPrimitiveParams(LSL_Key prim, LSL_List rules)
2203 {
2204 CheckThreatLevel(ThreatLevel.High, "osGetPrimitiveParams");
2205 m_host.AddScriptLPS(1);
2206
2207 m_LSL_Api.SetPrimitiveParamsEx(prim, rules);
2208 }
2193 } 2209 }
2194} 2210}