Formatting

This commit is contained in:
robojumper
2025-04-21 22:27:09 +02:00
parent 794c650e9b
commit 8f968f9292
2 changed files with 6 additions and 6 deletions
@@ -63,8 +63,8 @@ private:
STATE_FUNC_DECLARE(dLytMeterGanbariGauge_c, Recovery);
STATE_FUNC_DECLARE(dLytMeterGanbariGauge_c, ToMax);
void changeState(const sStateIDIf_c &value) { \
mStateMgrMain.changeState(value); \
void changeState(const sStateIDIf_c &value) {
mStateMgrMain.changeState(value);
}
STATE_MGR(dLytMeterGanbariGauge_c) mStateMgrMain;
+4 -4
View File
@@ -2,8 +2,8 @@
#define S_STATE_H
#include "s/s_FStateMgr.hpp"
#include "s/s_StateMethodUsr_FI.hpp"
#include "s/s_FStateVirtualID.hpp"
#include "s/s_StateMethodUsr_FI.hpp"
// Note: Ported from https://github.com/NSMBW-Community/NSMBW-Decomp/tree/master/include/dol/sLib
// See include/s/README.txt for changes made
@@ -34,12 +34,12 @@
#define STATE_MGR(class_name) sFStateMgr_c<class_name, sStateMethodUsr_FI_c>
#define STATE_MGR_DEFINE_UTIL_CHANGESTATE(class_name) \
void changeState(const sStateIDIf_c &value) { \
#define STATE_MGR_DEFINE_UTIL_CHANGESTATE(class_name) \
void changeState(const sStateIDIf_c &value) { \
mStateMgr.changeState(value); \
}
#define STATE_MGR_DEFINE_UTIL_ISSTATE(class_name) \
#define STATE_MGR_DEFINE_UTIL_ISSTATE(class_name) \
bool isState(const sFStateID_c<class_name> &value) const { \
return *mStateMgr.getStateID() == value; \
}