mirror of
https://github.com/zeldaret/ss
synced 2026-05-26 07:38:54 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
30 lines
616 B
C++
30 lines
616 B
C++
|
|
#ifndef EVENT_MANAGER_H
|
|
#define EVENT_MANAGER_H
|
|
|
|
#include "toBeSorted/event.h"
|
|
|
|
class dAcBase_c;
|
|
|
|
class EventManager {
|
|
public:
|
|
static bool isInEvent(dAcBase_c *actor, const char *eventName);
|
|
static bool alsoSetAsCurrentEvent(dAcBase_c *actor, Event *event, void *unknown);
|
|
|
|
static EventManager *sInstance;
|
|
|
|
static bool isInEvent() {
|
|
return sInstance != nullptr && sInstance->mState != 0;
|
|
}
|
|
|
|
static bool isInEventOtherThan7() {
|
|
return isInEvent() && sInstance != nullptr && sInstance->mState != 7;
|
|
}
|
|
|
|
private:
|
|
u8 field_0x000[0x184 - 0x000];
|
|
int mState;
|
|
};
|
|
|
|
#endif
|