Files
st/include/Actor/ActorRef.hpp
T
Aetias c925fce03c Actor::mType field (#7)
* `Actor::mType` field

* Fix struct sizes

* Update symbols
2025-08-24 18:41:23 +02:00

24 lines
434 B
C++

#pragma once
#include "types.h"
#define ACTOR_INDEX_MASK 0x3fff
struct ActorRef {
/* 0 */ s16 index;
/* 2 */ s16 id;
/* 4 */
inline void Reset() {
*(u32 *) this = 0;
}
inline bool operator==(const ActorRef &other) const {
return this->index == other.index && this->id == other.id;
}
inline bool operator!=(const ActorRef &other) const {
return !(*this == other);
}
};