mirror of
https://github.com/zeldaret/ss
synced 2026-05-23 15:01:38 -04:00
29 lines
966 B
C++
29 lines
966 B
C++
#ifndef S_FSTATEMGR_H
|
|
#define S_FSTATEMGR_H
|
|
|
|
// clang-format off
|
|
#include "s/s_FStateID.hpp"
|
|
#include "s/s_StateMgr.hpp"
|
|
#include "s/s_FState.hpp"
|
|
#include "s/s_FStateFct.hpp"
|
|
#include "s/s_StateIDChk.hpp"
|
|
// clang-format on
|
|
|
|
// Note: Ported from https://github.com/NSMBW-Community/NSMBW-Decomp/tree/master/include/dol/sLib
|
|
// See include/s/README.txt for changes made
|
|
|
|
/// @brief A wrapper for sStateMgr_c that uses sFStateFct_c and sStateIDChk_c.
|
|
/// @tparam T The class that this state belongs to.
|
|
/// @tparam Method The method to use for the state manager.
|
|
/// @ingroup state
|
|
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) {}
|
|
};
|
|
|
|
#endif
|