2021-12-04 12:33:18 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2023-08-27 16:34:46 -04:00
|
|
|
#include "common_formats.h"
|
|
|
|
|
2021-12-04 12:33:18 -05:00
|
|
|
#include "common/math/Vector.h"
|
2022-06-22 23:37:46 -04:00
|
|
|
|
2021-12-04 12:33:18 -05:00
|
|
|
#include "decompiler/ObjectFile/ObjectFileDB.h"
|
|
|
|
|
|
|
|
namespace decompiler {
|
2022-04-15 20:40:10 -04:00
|
|
|
|
|
|
|
// extract everything
|
|
|
|
void extract_all_levels(const ObjectFileDB& db,
|
|
|
|
const TextureDB& tex_db,
|
|
|
|
const std::vector<std::string>& dgo_names,
|
|
|
|
const std::string& common_name,
|
2023-07-16 13:02:53 -04:00
|
|
|
const Config& config,
|
2022-04-25 21:53:23 -04:00
|
|
|
bool debug_dump_level,
|
2022-06-29 23:32:46 -04:00
|
|
|
bool extract_collision,
|
2022-07-05 20:38:13 -04:00
|
|
|
const fs::path& path);
|
2023-08-27 16:34:46 -04:00
|
|
|
void add_all_textures_from_level(tfrag3::Level& lev,
|
|
|
|
const std::string& level_name,
|
|
|
|
const TextureDB& tex_db);
|
|
|
|
tfrag3::Texture make_texture(u32 id,
|
|
|
|
const TextureDB::TextureData& tex,
|
|
|
|
const std::string& tpage_name,
|
|
|
|
bool pool_load);
|
|
|
|
std::vector<level_tools::TextureRemap> extract_tex_remap(const ObjectFileDB& db,
|
|
|
|
const std::string& dgo_name);
|
2022-03-02 20:01:37 -05:00
|
|
|
} // namespace decompiler
|