Ejemplo n.º 1
0
        void export()
        {
            int idCenter    = Int32.Parse(currentAutotile.center.name.Split('_')[1]);
            int idSide      = Int32.Parse(currentAutotile.side.name.Split('_')[1]);
            int idCornerIn  = Int32.Parse(currentAutotile.cornerInside.name.Split('_')[1]);
            int idCornerOut = Int32.Parse(currentAutotile.cornerOutside.name.Split('_')[1]);
            SimpleAutoTileExporter exporter = new SimpleAutoTileExporter(currentAutotile.tilesFileName, idCenter, idSide, idCornerIn, idCornerOut);

            XmlDocument doc = exporter.generateDocument();

            doc.Save(currentAutotile.autoTileFilePath);
        }
Ejemplo n.º 2
0
        void export()
        {
            List<int> idsCenter = getIdsFrom(currentAutotile.center);
            List<int> idsSide = getIdsFrom(currentAutotile.side);
            List<int> idsCornerIn = getIdsFrom(currentAutotile.cornerInside);
            List<int> idsCornerOut = getIdsFrom(currentAutotile.cornerOutside);

            SimpleAutoTileExporter exporter = new SimpleAutoTileExporter(currentAutotile.tilesFileName, idsCenter, idsSide, idsCornerIn, idsCornerOut);

            XmlDocument doc = exporter.generateDocument();
            doc.Save(currentAutotile.autoTileFilePath);
        }