aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs b/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs
index adf49f2..f4c50a7 100644
--- a/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs
+++ b/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs
@@ -2,6 +2,7 @@ using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using libsecondlife; 4using libsecondlife;
5using System.Xml;
5 6
6namespace OpenSim.world 7namespace OpenSim.world
7{ 8{
@@ -18,6 +19,21 @@ namespace OpenSim.world
18 public void LoadAnims() 19 public void LoadAnims()
19 { 20 {
20 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Avatar.cs:LoadAnims() - Loading avatar animations"); 21 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Avatar.cs:LoadAnims() - Loading avatar animations");
22 XmlTextReader reader = new XmlTextReader("data/avataranimations.xml");
23 XmlDocument doc = new XmlDocument();
24 doc.Load(reader);
25
26 foreach (XmlNode nod in doc.FirstChild.ChildNodes)
27 {
28 if (nod.Attributes["name"] != null)
29 {
30 AnimsLLUUID.Add(nod.Attributes["name"], nod.Value);
31 }
32 }
33
34 reader.Close();
35
36 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Loaded " + AnimsLLUUID.Count.ToString() + " animation(s)");
21 37
22 foreach (KeyValuePair<string, LLUUID> kp in OpenSim.world.Avatar.Animations.AnimsLLUUID) 38 foreach (KeyValuePair<string, LLUUID> kp in OpenSim.world.Avatar.Animations.AnimsLLUUID)
23 { 39 {