NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
s_State.hpp
1#pragma once
2#include <game/sLib/s_FStateMgr.hpp>
3#include <game/sLib/s_StateMethodUsr_FI.hpp>
4
5#define STATE_FUNC_DECLARE(class, name) void initializeState_##name(); \
6 void executeState_##name(); \
7 void finalizeState_##name(); \
8 static sFStateID_c<class> StateID_##name
9
10#define STATE_DEFINE(class, name) sFStateID_c<class> class::StateID_##name( \
11 #class "::StateID_" #name, \
12 &class::initializeState_##name, \
13 &class::executeState_##name, \
14 &class::finalizeState_##name)