HQ and 3rd damage state sequences

This commit is contained in:
Paul Chote
2010-01-31 22:50:52 +13:00
parent eb32884b24
commit 9638a9ab8d
3 changed files with 72 additions and 11 deletions

View File

@@ -45,11 +45,11 @@ namespace OpenRa.Graphics
static void LoadSequencesForUnit(XmlElement eUnit)
{
string unitName = eUnit.GetAttribute("name");
Log.Write("Loading sequence {0}", unitName);
var sequences = eUnit.SelectNodes("./sequence").OfType<XmlElement>()
.Select(e => new Sequence(unitName, e))
.ToDictionary(s => s.Name);
units.Add(unitName, sequences);
}