public TileWriter(LevelWriter level, string tileset, int pixelSize, bool borders) { _level = level; Tileset = tileset; _pixelSize = pixelSize; _size = 512 / _pixelSize; _borders = borders; }
internal void WriteToStream(StreamWriter writer, LevelWriter level) { writer.Write("<array name=\"{0}\">", Filename); foreach (var unit in this) { unit.WriteToStream(writer, level.GetNextUnitID()); } writer.WriteLine("</array>"); }