Esempio n. 1
0
        // IO elements
        public static void ExportBattlefield(int index, string fullPath)
        {
            var battlefield = battlefields[index];
            var serialized  = new Serialized(Tilesets[battlefield.Tileset],
                                             paletteSets[battlefield.PaletteSet], battlefield);

            Do.Export(serialized, null, fullPath);
        }
Esempio n. 2
0
        public static void ExportBattlefields(string fullPath)
        {
            var battlefields = Battlefields;
            var serialized   = new Serialized[battlefields.Length];

            PaletteSet[] paletteSets = PaletteSets;
            for (int i = 0; i < battlefields.Length; i++)
            {
                serialized[i] = new Serialized(Tilesets[battlefields[i].Tileset],
                                               paletteSets[battlefields[i++].PaletteSet], battlefields[i]);
            }
            Do.Export(serialized,
                      fullPath + "\\" + LazyShell.Model.GetFileNameWithoutPath() + " - Battlefields\\" + "battlefield",
                      "BATTLEFIELD", true);
        }