diff options
author | Jeff Lee | 2009-11-22 18:10:46 -0500 |
---|---|---|
committer | Melanie | 2009-11-26 17:43:00 +0000 |
commit | d39c300d11109553b75ca761d26dda278c0ad7dd (patch) | |
tree | 5e45b10aa3389eaddc4e2b5b39ba872af3087fc5 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |
parent | Fix a small bug. Trusted script crossings now work again (diff) | |
download | opensim-SC_OLD-d39c300d11109553b75ca761d26dda278c0ad7dd.zip opensim-SC_OLD-d39c300d11109553b75ca761d26dda278c0ad7dd.tar.gz opensim-SC_OLD-d39c300d11109553b75ca761d26dda278c0ad7dd.tar.bz2 opensim-SC_OLD-d39c300d11109553b75ca761d26dda278c0ad7dd.tar.xz |
Added osGetRegionStats() function, to return a number of sim statistics
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 15 |
1 files changed, 15 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 e72fa70..482bfbc 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -1948,5 +1948,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1948 | 1948 | ||
1949 | return key.ToString(); | 1949 | return key.ToString(); |
1950 | } | 1950 | } |
1951 | |||
1952 | public LSL_List osGetRegionStats() | ||
1953 | { | ||
1954 | CheckThreatLevel(ThreatLevel.High, "osGetRegionStats"); | ||
1955 | m_host.AddScriptLPS(1); | ||
1956 | LSL_List ret = new LSL_List(); | ||
1957 | float[] stats = World.SimulatorStats; | ||
1958 | |||
1959 | for (int i = 0; i < 21; i++) | ||
1960 | { | ||
1961 | ret.Add(new LSL_Float( stats[i] )); | ||
1962 | } | ||
1963 | return ret; | ||
1964 | } | ||
1965 | |||
1951 | } | 1966 | } |
1952 | } | 1967 | } |