diff options
author | Melanie | 2012-07-20 22:12:02 +0100 |
---|---|---|
committer | Melanie | 2012-07-20 22:12:02 +0100 |
commit | 03ff782c3cbefc7ed8582445a1c89f36e643b117 (patch) | |
tree | 474fce6662c1d5e54f59289c1a2183ef727251d7 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Enables support for UUIDs to be returned in lists from (diff) | |
download | opensim-SC_OLD-03ff782c3cbefc7ed8582445a1c89f36e643b117.zip opensim-SC_OLD-03ff782c3cbefc7ed8582445a1c89f36e643b117.tar.gz opensim-SC_OLD-03ff782c3cbefc7ed8582445a1c89f36e643b117.tar.bz2 opensim-SC_OLD-03ff782c3cbefc7ed8582445a1c89f36e643b117.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 14 |
1 files changed, 14 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 29d0342..bf77dc5 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -3322,5 +3322,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3322 | InitLSL(); | 3322 | InitLSL(); |
3323 | ((LSL_Api)m_LSL_Api).DetachFromAvatar(); | 3323 | ((LSL_Api)m_LSL_Api).DetachFromAvatar(); |
3324 | } | 3324 | } |
3325 | |||
3326 | /// <summary> | ||
3327 | /// Checks if thing is a UUID. | ||
3328 | /// </summary> | ||
3329 | /// <param name="thing"></param> | ||
3330 | /// <returns>1 if thing is a valid UUID, 0 otherwise</returns> | ||
3331 | public LSL_Integer osIsUUID(string thing) | ||
3332 | { | ||
3333 | CheckThreatLevel(ThreatLevel.None, "osIsUUID"); | ||
3334 | m_host.AddScriptLPS(1); | ||
3335 | |||
3336 | UUID test; | ||
3337 | return UUID.TryParse(thing, out test) ? 1 : 0; | ||
3338 | } | ||
3325 | } | 3339 | } |
3326 | } | 3340 | } |