mirror of
https://github.com/zeldaret/ss.git
synced 2024-12-12 07:45:51 +00:00
31 lines
560 B
C++
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
|