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 <dol/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
46namespace fProfile {
47
50
53 void *(*mpClassInit)();
56 };
57
60
67 };
68
69 extern const fBaseProfile_c *(*sProfileList)[PROFILE_COUNT];
71
72} // 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:46
A set of basic information needed to construct an actor base.
Definition f_profile.hpp:59
u32 mActorProperties
Various actor-related properties.
Definition f_profile.hpp:66
A set of basic information needed to construct a generic base.
Definition f_profile.hpp:52
u16 mDrawOrder
The draw priority of the base. Lower values mean higher priority.
Definition f_profile.hpp:55
u16 mExecuteOrder
The execution priority of the base. Lower values mean higher priority.
Definition f_profile.hpp:54