1#include <game/bases/d_base.hpp>
2#include <game/bases/d_game_com.hpp>
4#include <constants/sjis_constants.h>
13 mpKindString(getKindString()),
22 if (parent !=
nullptr) {
23 searchParent = parent;
25 searchParent =
nullptr;
31 if (foundBase !=
nullptr) {
72 return D_BASE_KIND_STRING;
The minimum required implementation for a base.
dBase_c()
Constructs a new base.
static void initLoader()
[Unused]. Sets the callbacks for the scrapped relocatable profile system.
virtual int preDelete()
pre method for the delete operation.
virtual ~dBase_c()
Destroys the base.
virtual void postExecute(fBase_c::MAIN_STATE_e status)
post method for the execute operation.
virtual void postDraw(fBase_c::MAIN_STATE_e status)
post method for the draw operation.
virtual void postCreate(fBase_c::MAIN_STATE_e status)
post method for the create operation.
virtual const char * getKindString() const
Gets the base's kind string.
virtual int preDraw()
pre method for the draw operation.
static dBase_c * createRoot(ProfileName profName, unsigned long param, u8 groupType)
Creates a root base.
virtual void postDelete(fBase_c::MAIN_STATE_e status)
post method for the delete operation.
virtual int preExecute()
pre method for the execute operation.
virtual int preCreate()
pre method for the create operation.
static dBase_c * createBase(ProfileName profName, dBase_c *parent, unsigned long param, u8 groupType)
Creates a child base under the given parent.
static void unloadCallback()
[Unused]. Module unloading callback for the scrapped relocatable profile system.
static int loadAsyncCallback()
[Unused]. Module loading callback for the scrapped relocatable profile system.
static dBase_c * searchBaseByProfName(ProfileName profile, const dBase_c *parent)
Searches for a base with a given profile name, optionally under a given parent.
MAIN_STATE_e
The possible operation results.
virtual int preCreate()
pre method for the create operation.
static int(* sLoadAsyncCallback)()
[Unused]. See Unused Content.
virtual int preDelete()
pre method for the delete operation.
static fBase_c * createChild(ProfileName profName, fBase_c *parent, unsigned long param, u8 groupType)
Creates a child base under the given parent.
virtual int preExecute()
pre method for the execute operation.
virtual void postCreate(MAIN_STATE_e state)
post method for the create operation.
virtual void postExecute(MAIN_STATE_e state)
post method for the execute operation.
virtual int preDraw()
pre method for the draw operation.
static fBase_c * createRoot(ProfileName profName, unsigned long param, u8 groupType)
Creates a root base.
virtual void postDraw(MAIN_STATE_e state)
post method for the draw operation.
virtual void postDelete(MAIN_STATE_e state)
post method for the delete operation.
@ NOT_READY
The step could not completed at this time.
@ FAILED
The step could not be completed.
static void(* sUnloadCallback)()
[Unused]. See Unused Content.
static fBase_c * searchBaseByProfName(ProfileName profID, const fBase_c *parent)
Searches for a base with a given profile name, optionally under a given parent.
static u32 g_basesRandomSeed
[Unused]. Random seed written to after dBase_c::preDraw.
char * dProf_getName(ProfileName profName)
[Unused]. Obtains a string representing the profile name.
u16 ProfileName
The name of a profile. Value is a fProfile::PROFILE_NAME_e.
u32 getRandomSeed()
Gets a seed used for randomness.