mirror of
https://github.com/zeldaret/botw
synced 2026-08-03 16:52:22 -04:00
ksys: Add more message system classes
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
|
||||
#include <prim/seadRuntimeTypeInfo.h>
|
||||
#include <thread/seadAtomic.h>
|
||||
#include "KingSystem/Utils/Thread/MessageTransceiverIdGen.h"
|
||||
|
||||
namespace ksys {
|
||||
|
||||
class MesTransceiverIdGenEx : public MesTransceiverIdGen {
|
||||
public:
|
||||
MesTransceiverIdGenEx();
|
||||
~MesTransceiverIdGenEx() override;
|
||||
bool m1(void*) override;
|
||||
void m2(void* x) override;
|
||||
|
||||
bool checkFlag() const;
|
||||
bool checkCounter() const;
|
||||
void setFlag(bool update_counter);
|
||||
|
||||
void setFlagPointer(u8* ptr);
|
||||
void clearFlagPointer();
|
||||
|
||||
SEAD_RTTI_BASE(MesTransceiverIdGenEx)
|
||||
|
||||
protected:
|
||||
virtual bool m6(void* x);
|
||||
virtual void m7(void* x);
|
||||
|
||||
private:
|
||||
u8* mFlag{};
|
||||
sead::Atomic<s32> mCounter;
|
||||
};
|
||||
|
||||
} // namespace ksys
|
||||
Reference in New Issue
Block a user