void cata_tiles::init(std::string json_path, std::string tileset_path) { // load files DebugLog() << "Attempting to Load JSON file\n"; load_tilejson(json_path); DebugLog() << "Attempting to Load Tileset file\n"; load_tileset(tileset_path); DebugLog() << "Attempting to Create Rotation Cache\n"; create_rotation_cache(); }
void cata_tiles::init(SDL_Surface *screen, std::string json_path, std::string tileset_path) { display_screen = screen; // load files DebugLog() << "Attempting to Load JSON file\n"; load_tilejson(json_path); DebugLog() << "Attempting to Load Tileset file\n"; load_tileset(tileset_path); DebugLog() << "Attempting to Create Rotation Cache\n"; create_rotation_cache(); }