NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
f_profile.hpp
Go to the documentation of this file.
1#pragma once
2#include <types.h>
3#include <game/framework/f_profile_name.hpp>
5
8
11#define CUSTOM_BASE_PROFILE(profName, className, executeOrder, drawOrder) void *className##_classInit() { return new className(); } \
12 fProfile::fBaseProfile_c g_profile_##profName = { &className##_classInit, executeOrder, drawOrder }
13
16#define CUSTOM_ACTOR_PROFILE(profName, className, executeOrder, drawOrder, properties) void *className##_classInit() { return new className(); } \
17 const fProfile::fActorProfile_c g_profile_##profName = { &className##_classInit, executeOrder, drawOrder, properties }
18
23#define BASE_PROFILE(profName, className) CUSTOM_BASE_PROFILE(profName, className, fProfile::profName, fProfile::DRAW_ORDER::profName);
24
29#define ACTOR_PROFILE(profName, className, properties) CUSTOM_ACTOR_PROFILE(profName, className, fProfile::profName, fProfile::DRAW_ORDER::profName, properties);
30
32typedef u16 ProfileName;
33
39char *dProf_getName(ProfileName profName);
40
42
47namespace fProfile {
48
51
54 void *(*mpClassInit)();
57 };
58
69
70 extern const fBaseProfile_c *(*sProfileList)[PROFILE_COUNT];
72
73} // namespace fProfile
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.
Definition f_profile.hpp:32
@ PROFILE_COUNT
The total number of profiles.
For all profile related structures.
Definition f_profile.hpp:47
A set of basic information needed to construct an actor base.
Definition f_profile.hpp:60
u32 mActorProperties
Various actor-related properties.
Definition f_profile.hpp:67
A set of basic information needed to construct a generic base.
Definition f_profile.hpp:53
u16 mDrawOrder
The draw priority of the base. Lower values mean higher priority.
Definition f_profile.hpp:56
u16 mExecuteOrder
The execution priority of the base. Lower values mean higher priority.
Definition f_profile.hpp:55