diff options
author | Melanie Thielker | 2008-08-15 21:18:08 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-08-15 21:18:08 +0000 |
commit | c1fa7592c751005cde427fc0f4bf7b683d0eefe5 (patch) | |
tree | d4a9cbc892f5646d0afc2ce8aefccfe007e3cd4f /OpenSim/Region/ScriptEngine/Shared/Api | |
parent | Plumb the user flags all the way through to the profile. userFlags in (diff) | |
download | opensim-SC-c1fa7592c751005cde427fc0f4bf7b683d0eefe5.zip opensim-SC-c1fa7592c751005cde427fc0f4bf7b683d0eefe5.tar.gz opensim-SC-c1fa7592c751005cde427fc0f4bf7b683d0eefe5.tar.bz2 opensim-SC-c1fa7592c751005cde427fc0f4bf7b683d0eefe5.tar.xz |
Pantis #1957
Thank you, Leaf, for a patch that implements llGetAnimationList()
XEngine implementation added by myself.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 09377a1..15793e4 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5502,11 +5502,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5502 | return (double)Math.Log(val); | 5502 | return (double)Math.Log(val); |
5503 | } | 5503 | } |
5504 | 5504 | ||
5505 | public LSL_Types.list llGetAnimationList(string id) | 5505 | public LSL_Types.list llGetAnimationList( string id ) |
5506 | { | 5506 | { |
5507 | m_host.AddScriptLPS(1); | 5507 | m_host.AddScriptLPS(1); |
5508 | NotImplemented("llGetAnimationList"); | 5508 | |
5509 | return new LSL_Types.list(); | 5509 | LSL_Types.list l = new LSL_Types.list(); |
5510 | ScenePresence av = World.GetScenePresence(id); | ||
5511 | if( av == null ) | ||
5512 | return l; | ||
5513 | LLUUID[] anims; | ||
5514 | anims = av.GetAnimationArray(); | ||
5515 | foreach( LLUUID foo in anims ) | ||
5516 | l.Add( foo.ToString() ); | ||
5517 | return l; | ||
5510 | } | 5518 | } |
5511 | 5519 | ||
5512 | public void llSetParcelMusicURL(string url) | 5520 | public void llSetParcelMusicURL(string url) |