From a01b415d6c3fa2ee650b23b7d78432a2eac5a2a7 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 11 May 2008 21:27:12 +0000 Subject: 0001199: [PATCH] Add support for default animations From Melanie... Thanks Melanie! . --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'OpenSim/Region/ClientStack/LindenUDP') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 8506912..68e1a0d 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -96,6 +96,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP private byte[] m_channelVersion = Helpers.StringToField("OpenSimulator 0.5"); // Dummy value needed by libSL + private Dictionary m_defaultAnimations = new Dictionary(); + + /* protected variables */ protected static Dictionary PacketHandlers = @@ -326,6 +329,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP m_channelVersion = Helpers.StringToField(scene.GetSimulatorVersion()); + InitDefaultAnimations(); + + m_scene = scene; m_assetCache = assetCache; @@ -3097,6 +3103,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP OutPacket(scriptQuestion, ThrottleOutPacketType.Task); } + private void InitDefaultAnimations() + { + } + + public LLUUID GetDefaultAnimation(string name) + { + if(m_defaultAnimations.ContainsKey(name)) + return m_defaultAnimations[name]; + return LLUUID.Zero; + } protected virtual bool Logout(IClientAPI client, Packet packet) { -- cgit v1.1