0001199: [PATCH] Add support for default animations

From Melanie...   Thanks Melanie!  











































.
This commit is contained in:
Teravus Ovares
2008-05-11 21:27:12 +00:00
parent 8f26427055
commit a01b415d6c
5 changed files with 90 additions and 8 deletions

View File

@@ -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<string, LLUUID> m_defaultAnimations = new Dictionary<string, LLUUID>();
/* protected variables */
protected static Dictionary<PacketType, PacketMethod> 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)
{