diff options
| author | Léo Lam <leo@leolam.fr> | 2021-01-29 13:04:23 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-01-29 13:04:23 +0100 |
| commit | 387de6cefbe0eb72153c8b5938995b6598caff87 (patch) | |
| tree | 6f66d9a7f6a584c3d9c819c38f77e6e177b8aa23 /src/KingSystem/Utils/Thread | |
| parent | b9ec01bcade1dfc892f01bfced50fb25921a8ac8 (diff) | |
Move mesTransceiver to ksys/Utils/Thread
Diffstat (limited to 'src/KingSystem/Utils/Thread')
| -rw-r--r-- | src/KingSystem/Utils/Thread/MessageTransceiver.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/KingSystem/Utils/Thread/MessageTransceiver.h b/src/KingSystem/Utils/Thread/MessageTransceiver.h new file mode 100644 index 00000000..f071483e --- /dev/null +++ b/src/KingSystem/Utils/Thread/MessageTransceiver.h @@ -0,0 +1,35 @@ +#pragma once + +#include <basis/seadTypes.h> + +#include "KingSystem/Utils/Types.h" + +namespace ksys { + +struct MesTransceiverId { + MesTransceiverId() { reset(); } + ~MesTransceiverId() { reset(); } + + void reset() { + _0 = -1; + _4 = -1; + _8 = nullptr; + _10 = nullptr; + } + + MesTransceiverId& operator=(const MesTransceiverId& other) { + _0 = other._0; + _4 = other._4; + _8 = other._8; + _10 = other._10; + return *this; + } + + s32 _0{}; + s32 _4{}; + void* _8{}; + void* _10{}; +}; +KSYS_CHECK_SIZE_NX150(MesTransceiverId, 0x18); + +} // namespace ksys |
