aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorUbitUmarov2016-07-04 08:29:26 +0100
committerUbitUmarov2016-07-04 08:29:26 +0100
commitac72598c6bd974c426863262a1c5ac9210bd986c (patch)
treef1b1f42e5572044be5592162681273aee12af888 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentNew config var: DisableObjectTransfer. If set to True, objects never cross; i... (diff)
downloadopensim-SC-ac72598c6bd974c426863262a1c5ac9210bd986c.zip
opensim-SC-ac72598c6bd974c426863262a1c5ac9210bd986c.tar.gz
opensim-SC-ac72598c6bd974c426863262a1c5ac9210bd986c.tar.bz2
opensim-SC-ac72598c6bd974c426863262a1c5ac9210bd986c.tar.xz
add OSSL osGetPhysicsEngineName(). this returns a string with name and version. does no permition checks or it whould be less usefull ( only ubOde returns value)
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 90b7494..204f73e 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -1724,6 +1724,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1724 return ret; 1724 return ret;
1725 } 1725 }
1726 1726
1727 public string osGetPhysicsEngineName()
1728 {
1729 // not doing security checks
1730 // this whould limit the use of this
1731
1732 m_host.AddScriptLPS(1);
1733 string ret = "NoEngine";
1734 if (m_ScriptEngine.World.PhysicsScene != null)
1735 {
1736 ret = m_ScriptEngine.World.PhysicsScene.EngineName;
1737 // An old physics engine might have an uninitialized engine type
1738 if (ret == null)
1739 ret = "UnknownEngine";
1740 }
1741 return ret;
1742 }
1727 public string osGetSimulatorVersion() 1743 public string osGetSimulatorVersion()
1728 { 1744 {
1729 // High because it can be used to target attacks to known weaknesses 1745 // High because it can be used to target attacks to known weaknesses