Files
ss/include/f/f_tree_mg.h
T
lepelog 42880ec9ae init
2023-08-09 16:59:04 +02:00

30 lines
1.1 KiB
C++

#pragma once
// This file was ported from https://github.com/NSMBW-Community/NSMBW-Decomp/blob/master/include/dol/framework/f_tree_mg.hpp
#include <types.h>
#include <c/c_tree.h>
#include <f/f_profile.h>
class fTrNdBa_c;
/// @brief A container for a tree of fTrNdBa_c nodes.
class fTrMgBa_c : public cTreeMg_c {
public:
/**
* @brief Finds a node with a given profile name, optionally under a given parent root node.
*
* @param profName The profile name.
* @param parent The root node to start search below, or @p nullptr to use the tree's root node.
* @return The found node, or @p nullptr if none was found.
*/
const fTrNdBa_c *searchNodeByProfName(ProfileName profName, const fTrNdBa_c *parent) const;
/**
* @brief Find a node with a given group type, optionally under a given parent root node.
*
* @param groupType The group type.
* @param parent The root node to start search below, or @p nullptr to use the tree's root node.
* @return The found node, or @p nullptr if none was found.
*/
const fTrNdBa_c *searchNodeByGroupType(u8 groupType, const fTrNdBa_c *parent) const;
};