mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
b2ed9313bd
* decompile 90% of shrubbery * some more progress * some more * big function decompiled * went through `draw-prototype-inline-array-shrub` and made more notes * shrub: start implementing extract_shrub * read through current notes and add the info to current decomp * decomp: allow skipping inline-asm from output * add code to BspHeader to get GOAL types for shrubs * add doc * wip * fix bad merge Co-authored-by: Tyler Wilding <xtvaser@gmail.com> Co-authored-by: Tyler Wilding <xTVaser@users.noreply.github.com>
29 lines
961 B
C++
29 lines
961 B
C++
#pragma once
|
|
|
|
#include "decompiler/level_extractor/BspHeader.h"
|
|
#include "common/math/Vector.h"
|
|
#include "common/custom_data/Tfrag3Data.h"
|
|
#include "decompiler/data/TextureDB.h"
|
|
|
|
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,
|
|
bool dump_level);
|
|
|
|
} // namespace decompiler
|