ShpLoader is no longer IEnumerable

This commit is contained in:
Chris Forbes
2011-12-27 18:10:52 +13:00
parent d115c6305c
commit f8122047b6
3 changed files with 5 additions and 13 deletions

View File

@@ -51,7 +51,7 @@ namespace OpenRA.FileFormats
public enum Format { Format20 = 0x20, Format40 = 0x40, Format80 = 0x80 }
public class ShpReader : IEnumerable<ImageHeader>
public class ShpReader
{
public readonly int ImageCount;
public readonly ushort Width;
@@ -157,15 +157,7 @@ namespace OpenRA.FileFormats
return imageData;
}
public IEnumerator<ImageHeader> GetEnumerator()
{
return headers.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
public IEnumerable<ImageHeader> Frames { get { return headers; } }
public static ShpReader Load(string filename)
{