Rewrite ShpTSReader. Closes #3746.

This commit is contained in:
Paul Chote
2013-11-29 18:33:54 +13:00
parent 5b947090f4
commit 20a6c75ba4
2 changed files with 75 additions and 577 deletions

View File

@@ -44,7 +44,7 @@ namespace OpenRA.Graphics
if (ImageCount == 0)
{
var shp = new ShpTSReader(FileSystem.OpenWithExts(filename, exts));
return shp.Select(a => SheetBuilder.Add(a.Image, shp.Size)).ToArray();
return shp.Frames.Select(a => SheetBuilder.Add(a.Image, a.Size, a.Offset)).ToArray();
}
else
{