mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:47:42 +00:00
Initial CPlayerGun implementations
This commit is contained in:
@@ -78,8 +78,8 @@ struct TUniqueId
|
||||
TUniqueId(u16 value, u16 version) : id(value | (version << 10)) {}
|
||||
u16 id = u16(-1);
|
||||
|
||||
s16 Version() const { return s16((id >> 10) & 0x3f);}
|
||||
s16 Value() const { return s16(id & 0x3ff);}
|
||||
u16 Version() const { return u16((id >> 10) & 0x3f);}
|
||||
u16 Value() const { return u16(id & 0x3ff);}
|
||||
bool operator<(const TUniqueId& other) const { return (id < other.id); }
|
||||
bool operator!=(const TUniqueId& other) const { return (id != other.id); }
|
||||
bool operator==(const TUniqueId& other) const { return (id == other.id); }
|
||||
|
||||
Reference in New Issue
Block a user