mirror of
https://github.com/open-goal/jak-project
synced 2026-06-30 03:49:08 -04:00
477cefb6a5
Store a small database of which models have already been swapped out in a level to prevent duplicate processing. Also a small fix for cases where using a model replacement that has no armature would cause merc nightmares due to only having a `max_bones` of 3.
21 lines
650 B
C++
21 lines
650 B
C++
#pragma once
|
|
|
|
#include "extract_level.h"
|
|
|
|
#include "common/custom_data/Tfrag3Data.h"
|
|
|
|
#include "decompiler/ObjectFile/ObjectFileDB.h"
|
|
#include "decompiler/data/TextureDB.h"
|
|
#include "decompiler/level_extractor/common_formats.h"
|
|
|
|
namespace decompiler {
|
|
|
|
void extract_merc(const ObjectFileData& ag_data,
|
|
const TextureDB& tex_db,
|
|
const DecompilerTypeSystem& dts,
|
|
const std::vector<level_tools::TextureRemap>& map,
|
|
tfrag3::Level& out,
|
|
bool dump_level,
|
|
GameVersion version,
|
|
MercSwapInfo& swapped_info);
|
|
} // namespace decompiler
|