| 39 | // implementation TileMapAtlas |
| 40 | |
| 41 | TileMapAtlas* TileMapAtlas::create(std::string_view tile, std::string_view mapFile, int tileWidth, int tileHeight) |
| 42 | { |
| 43 | TileMapAtlas* ret = new TileMapAtlas(); |
| 44 | if (ret->initWithTileFile(tile, mapFile, tileWidth, tileHeight)) |
| 45 | { |
| 46 | ret->autorelease(); |
| 47 | return ret; |
| 48 | } |
| 49 | AX_SAFE_DELETE(ret); |
| 50 | return nullptr; |
| 51 | } |
| 52 | |
| 53 | bool TileMapAtlas::initWithTileFile(std::string_view tile, std::string_view mapFile, int tileWidth, int tileHeight) |
| 54 | { |
nothing calls this directly
no test coverage detected