@@ -423,62 +423,6 @@ void Tilemap::guess_width() {
423423 }
424424}
425425
426- int Tilemap::format_tileset_size (Tilemap_Format fmt) {
427- switch (fmt) {
428- case Tilemap_Format::RLE_NYBBLES:
429- // High nybble is reserved for run length
430- return 0x10 ;
431- case Tilemap_Format::XY_FLIP:
432- // High two bits are reserved for X/Y flip
433- return 0x40 ;
434- case Tilemap_Format::FF_END:
435- case Tilemap_Format::RLE_FF_END:
436- // $FF is reserved for the end marker
437- return 0xFF ;
438- default :
439- return 0x100 ;
440- }
441- }
442-
443- const char *Tilemap::format_name (Tilemap_Format fmt) {
444- switch (fmt) {
445- case Tilemap_Format::PLAIN:
446- return " Plain" ;
447- case Tilemap_Format::RLE:
448- return " Run-length encoded" ;
449- case Tilemap_Format::FF_END:
450- return " GSC Town Map" ;
451- case Tilemap_Format::RLE_FF_END:
452- return " Pok\xc3\xa9 gear card" ;
453- case Tilemap_Format::RLE_NYBBLES:
454- return " RBY Town Map" ;
455- case Tilemap_Format::XY_FLIP:
456- return " PC Town Map" ;
457- case Tilemap_Format::TILE_ATTR:
458- return " SGB border" ;
459- default :
460- return " Any" ;
461- }
462- }
463-
464- const char *Tilemap::format_extension (Tilemap_Format fmt) {
465- switch (fmt) {
466- case Tilemap_Format::PLAIN:
467- default :
468- return " .tilemap" ; // e.g. pokecrystal/gfx/card_flip/card_flip.tilemap
469- case Tilemap_Format::RLE:
470- case Tilemap_Format::RLE_NYBBLES:
471- return " .rle" ; // e.g. pokered/gfx/town_map.rle
472- case Tilemap_Format::FF_END:
473- case Tilemap_Format::XY_FLIP:
474- return " .bin" ; // e.g. pokecrystal/gfx/pokegear/*.bin, polishedcrystal/gfx/town_map/*.bin
475- case Tilemap_Format::RLE_FF_END:
476- return " .tilemap.rle" ; // e.g. pokecrystal/gfx/pokegear/*.tilemap.bin
477- case Tilemap_Format::TILE_ATTR:
478- return " .map" ; // e.g. pokered/gfx/{red|blue}/sgbborder.map
479- }
480- }
481-
482426const char *Tilemap::error_message (Result result) {
483427 switch (result) {
484428 case TILEMAP_OK:
0 commit comments