start splitting up tsb; fix a wtf in the save code

This commit is contained in:
Chris Forbes
2010-09-17 18:59:14 +12:00
parent 1b66635670
commit 5593b9ffdd
5 changed files with 1265 additions and 1414 deletions

View File

@@ -0,0 +1,19 @@
using System.Collections.Generic;
using System.Linq;
namespace OpenRA.TilesetBuilder
{
class Template
{
public Dictionary<int2, bool> Cells = new Dictionary<int2, bool>();
public int Left { get { return Cells.Keys.Min(c => c.X); } }
public int Top { get { return Cells.Keys.Min(c => c.Y); } }
public int Right { get { return Cells.Keys.Max(c => c.X) + 1; } }
public int Bottom { get { return Cells.Keys.Max(c => c.Y) + 1; } }
public int Width { get { return Right - Left; } }
public int Height { get { return Bottom - Top; } }
}
}