2022-03-28 18:14:25 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common/custom_data/Tfrag3Data.h"
|
2022-06-22 23:37:46 -04:00
|
|
|
#include "common/math/Vector.h"
|
|
|
|
|
2022-03-28 18:14:25 -04:00
|
|
|
#include "decompiler/data/TextureDB.h"
|
2022-06-22 23:37:46 -04:00
|
|
|
#include "decompiler/level_extractor/BspHeader.h"
|
2022-03-28 18:14:25 -04:00
|
|
|
|
|
|
|
namespace decompiler {
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Extract shrubs from the level
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="tree"></param>
|
|
|
|
/// <param name="debug_name"></param>
|
|
|
|
/// <param name="map"></param>
|
|
|
|
/// <param name="tex_db"></param>
|
|
|
|
/// <param name="expected_missing_textures"></param>
|
|
|
|
/// <param name="out"></param>
|
|
|
|
/// <param name="dump_level"></param>
|
|
|
|
void extract_shrub(const level_tools::shrub_types::DrawableTreeInstanceShrub* tree,
|
|
|
|
const std::string& debug_name,
|
|
|
|
const std::vector<level_tools::TextureRemap>& map,
|
|
|
|
const TextureDB& tex_db,
|
|
|
|
const std::vector<std::pair<int, int>>& expected_missing_textures,
|
|
|
|
tfrag3::Level& out,
|
2023-04-14 21:13:45 -04:00
|
|
|
bool dump_level,
|
|
|
|
GameVersion version);
|
2022-03-28 18:14:25 -04:00
|
|
|
|
|
|
|
} // namespace decompiler
|