diff options
author | Sean Dague | 2009-04-09 15:04:02 +0000 |
---|---|---|
committer | Sean Dague | 2009-04-09 15:04:02 +0000 |
commit | a5ceb1a2a06c7975f53603a3eb735e192745211e (patch) | |
tree | 1100ad85ee8f3b80189e52bf057bf390a6538bf8 /OpenSim/Region/ScriptEngine/Shared/Api/Runtime | |
parent | * Implements IObject.Materials[].* (diff) | |
download | opensim-SC-a5ceb1a2a06c7975f53603a3eb735e192745211e.zip opensim-SC-a5ceb1a2a06c7975f53603a3eb735e192745211e.tar.gz opensim-SC-a5ceb1a2a06c7975f53603a3eb735e192745211e.tar.bz2 opensim-SC-a5ceb1a2a06c7975f53603a3eb735e192745211e.tar.xz |
From: Christopher Yeoh <yeohc@au1.ibm.com>
The attached patch implements osKey2Name and osName2Key
which converts between a UUID key for an avatar and
an avatar name and vice-versa.
osKey2Name is similar to llKey2Name except that it will work
even if the avatar being looked up is not in the same region
as the script.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs index 3ca4095..b42505f 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | |||
@@ -300,6 +300,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
300 | m_OSSL_Functions.osMakeNotecard(notecardName, contents); | 300 | m_OSSL_Functions.osMakeNotecard(notecardName, contents); |
301 | } | 301 | } |
302 | 302 | ||
303 | public string osAvatarName2Key(string firstname, string lastname) | ||
304 | { | ||
305 | return m_OSSL_Functions.osAvatarName2Key(firstname, lastname); | ||
306 | } | ||
307 | |||
308 | public string osKey2Name(string id) | ||
309 | { | ||
310 | return m_OSSL_Functions.osKey2Name(id); | ||
311 | } | ||
312 | |||
303 | public string osGetGridNick() | 313 | public string osGetGridNick() |
304 | { | 314 | { |
305 | return m_OSSL_Functions.osGetGridNick(); | 315 | return m_OSSL_Functions.osGetGridNick(); |