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/OSSL_Api.cs14
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 4137397..e0b4db6 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -3274,5 +3274,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3274 InitLSL(); 3274 InitLSL();
3275 ((LSL_Api)m_LSL_Api).DetachFromAvatar(); 3275 ((LSL_Api)m_LSL_Api).DetachFromAvatar();
3276 } 3276 }
3277
3278 /// <summary>
3279 /// Checks if thing is a UUID.
3280 /// </summary>
3281 /// <param name="thing"></param>
3282 /// <returns>1 if thing is a valid UUID, 0 otherwise</returns>
3283 public LSL_Integer osIsUUID(string thing)
3284 {
3285 CheckThreatLevel(ThreatLevel.None, "osIsUUID");
3286 m_host.AddScriptLPS(1);
3287
3288 UUID test;
3289 return UUID.TryParse(thing, out test) ? 1 : 0;
3290 }
3277 } 3291 }
3278} \ No newline at end of file 3292} \ No newline at end of file