mirror of
https://github.com/zeldaret/st
synced 2026-05-23 15:01:41 -04:00
c925fce03c
* `Actor::mType` field * Fix struct sizes * Update symbols
24 lines
434 B
C++
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);
|
|
}
|
|
};
|