2#include <game/framework/f_tree_mg_ptmf.hpp>
3#include <game/framework/f_tree_mg.hpp>
4#include <game/framework/f_tree_nd.hpp>
5#include <game/framework/f_base.hpp>
16 while (curr !=
nullptr) {
27 if (parent !=
nullptr) {
34 while (curr !=
nullptr) {
44 if (parent !=
nullptr) {
51 while (curr !=
nullptr) {
cTreeNd_c * mpRootNode
The root node of the tree.
u8 mGroupType
The base's group type. Value is a GROUP_TYPE_e.
ProfileName mProfName
The base's profile name.
const fTrNdBa_c * searchNodeByProfName(ProfileName profName, const fTrNdBa_c *parent) const
Searches for a base with a given profile name, optionally under a given parent.
const fTrNdBa_c * searchNodeByGroupType(u8 groupType, const fTrNdBa_c *parent) const
Searches for a base with a given group type, optionally under a given parent.
bool walkPack()
Calls the process function on each base in the tree.
int(fBase_c::* mpProcFunc)()
The process function for the tree.
fBase_c * mpOwner
The owner of this node.
fTrNdBa_c * getTreeNext() const
Gets the next node in preorder traversal order.
u16 ProfileName
The name of a profile. Value is a fProfile::PROFILE_NAME_e.