ss/include/d/flag/skipflag_manager.h
2024-10-25 15:30:28 +02:00

31 lines
560 B
C++

#ifndef D_FLAG_SKIPFLAG_MANAGER_H
#define D_FLAG_SKIPFLAG_MANAGER_H
#include "d/flag/bitwise_flag_helper.h"
#include "d/flag/flag_space.h"
class SkipflagManager {
public:
SkipflagManager();
void init();
void setCommitFlag(u16 flag);
void copyFromSave();
void setFlag(u16 flag);
bool checkFlag(u16 flag);
bool commit();
static SkipflagManager *sInstance;
private:
void doCopyFromSave();
static u16 sSkipFlags[16];
bool mShouldCommit;
BitwiseFlagHelper mFlagHelper;
FlagSpace mFlagSpace;
};
#endif