Allow tilesets to specify their sheet size.

Decreased the default size from 4096 to 512.
This commit is contained in:
Paul Chote
2013-08-15 18:05:34 +12:00
parent f83ad88d2a
commit 7278739e45
3 changed files with 5 additions and 4 deletions

View File

@@ -77,6 +77,7 @@ namespace OpenRA.FileFormats
{
public string Name;
public string Id;
public int SheetSize = 512;
public string Palette;
public string PlayerPalette;
public string[] Extensions;
@@ -85,7 +86,7 @@ namespace OpenRA.FileFormats
public Dictionary<ushort, TileTemplate> Templates = new Dictionary<ushort, TileTemplate>();
public string[] EditorTemplateOrder;
static readonly string[] fields = {"Name", "TileSize", "Id", "Palette", "Extensions"};
static readonly string[] fields = {"Name", "TileSize", "Id", "SheetSize", "Palette", "Extensions"};
public TileSet() {}