1#include <game/framework/f_manager.hpp>
2#include <game/framework/f_base.hpp>
28 if (parent !=
nullptr) {
31 connectNode =
nullptr;
43 if (parent !=
nullptr) {
46 connectNode =
nullptr;
The base class for all scenes, actors and various other processes.
int createPack()
Executes the create operation. See commonPack.
int connectProc()
Executes the connect operation.
fManager_c mMng
The base's process manager.
int deletePack()
Executes the delete operation. See commonPack.
int executePack()
Executes the execute operation. See commonPack.
int drawPack()
Executes the draw operation. See commonPack.
A base list, made of fLiNdBa_c nodes.
const fLiNdBa_c * searchNodeByID(fBaseID_e id) const
Searches for a base with the given ID.
A base list made of fLiNdPrio_c nodes, with a reference to a process function.
bool walkPack()
Calls the process function on each base in the list.
fBase_c * mpOwner
The owner of this node.
static fLiMgPTMF_c m_drawManage
A list of all the bases scheduled for drawing.
static fTrMgPTMF_c m_connectManage
A tree that connects all loaded bases.
static fLiMgBa_c m_searchManage[8]
An array of lists used for base lookup.
static LOOP_PROC_e m_nowLoopProc
The current operation being globally executed. See mainLoop.
static fBase_c * searchBaseByGroupType(unsigned char groupType, const fBase_c *parent)
Searches for a base with a given group type, optionally under a given parent.
LOOP_PROC_e
The operation types.
static fLiMgPTMF_c m_executeManage
A list of all the bases scheduled for execution.
static u32 m_StopProcInf
[Unused]. The operations which should be globally skipped this frame.
int getSearchTableNum()
Gets the index of the search list the owning base was added to. See m_searchManage.
static fLiMgPTMF_c m_deleteManage
A list of all the bases scheduled for deletion.
static void mainLoop()
Executes the currently enabled operations on all the bases in the respective lists.
fTrNdBa_c mConnectNode
The node in the connect tree.
static fLiMgPTMF_c m_createManage
A list of all the bases scheduled for creation.
fLiNdBa_c mSearchNode
The node in the search lists.
static fBase_c * searchBaseByID(fBaseID_e id)
Searches for a base with the given ID.
static fBase_c * searchBaseByProfName(ProfileName profID, const fBase_c *parent)
Searches for a base with a given profile name, optionally under a given parent.
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.
A base tree made of fTrNdBa_c nodes, with a reference to a process function.
bool walkPack()
Calls the process function on each base in the tree.
fBase_c * mpOwner
The owner of this node.
fBaseID_e
A unique identifier for each base.
u16 ProfileName
The name of a profile. Value is a fProfile::PROFILE_NAME_e.