d_lyt_map skeleton

This commit is contained in:
robojumper
2024-11-23 22:44:53 +01:00
parent 7ead1b24c0
commit 547fcc4d21
11 changed files with 544 additions and 84 deletions
+2
View File
@@ -19,6 +19,8 @@
template <class T, class Method>
class sFStateMgr_c : public sStateMgr_c<T, Method, sFStateFct_c, sStateIDChk_c> {
public:
sFStateMgr_c(T &owner)
: sStateMgr_c<T, Method, sFStateFct_c, sStateIDChk_c>(owner) {}
sFStateMgr_c(T &owner, const sStateIDIf_c &initializeState)
: sStateMgr_c<T, Method, sFStateFct_c, sStateIDChk_c>(owner, initializeState) {}
};
+3
View File
@@ -1,6 +1,7 @@
#ifndef S_STATEMGR_H
#define S_STATEMGR_H
#include "s/s_StateID.hpp"
#include "s/s_StateInterfaces.hpp"
// Note: Ported from https://github.com/NSMBW-Community/NSMBW-Decomp/tree/master/include/dol/sLib
@@ -18,6 +19,8 @@
template <class T, class Method, template <class> class Factory, class Check>
class sStateMgr_c : sStateMgrIf_c {
public:
sStateMgr_c(T &owner)
: mFactory(owner), mMethod(mCheck, mFactory, sStateID::null) {}
sStateMgr_c(T &owner, const sStateIDIf_c &initialState)
: mFactory(owner), mMethod(mCheck, mFactory, initialState) {}