added Name to Sequence

This commit is contained in:
Chris Forbes
2009-11-03 19:03:42 +13:00
parent 0618fb6987
commit cda22ba7be
4 changed files with 8 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ namespace OpenRa.Game.Graphics
{
readonly int start, length;
public readonly string Name;
public int Start { get { return start; } }
public int End { get { return start + length; } }
public int Length { get { return length; } }
@@ -14,6 +15,7 @@ namespace OpenRa.Game.Graphics
public Sequence(string unit, XmlElement e)
{
string srcOverride = e.GetAttribute("src");
Name = e.GetAttribute("name");
Range<int> src = UnitSheetBuilder.GetUnit(
string.IsNullOrEmpty(srcOverride) ? unit : srcOverride);