Convert SmudgeLayer to sequences.

This commit is contained in:
Paul Chote
2013-12-09 23:22:01 +13:00
parent f5123981fa
commit 8c7f77d2c7
8 changed files with 133 additions and 31 deletions

View File

@@ -68,5 +68,14 @@ namespace OpenRA.Graphics
return units[unit].ContainsKey(seq);
}
public static IEnumerable<string> Sequences(string unit)
{
if (!units.ContainsKey(unit))
throw new InvalidOperationException(
"Unit `{0}` does not have all sequences defined.".F(unit));
return units[unit].Keys;
}
}
}