示例#1
0
 public TileWriter(LevelWriter level, string tileset, int pixelSize, bool borders)
 {
     _level     = level;
     Tileset    = tileset;
     _pixelSize = pixelSize;
     _size      = 512 / _pixelSize;
     _borders   = borders;
 }
示例#2
0
 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>");
 }