mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 17:04:55 +00:00
various implementation
This commit is contained in:
@@ -11,10 +11,14 @@
|
||||
namespace Retro
|
||||
{
|
||||
|
||||
using FourCC = HECL::FourCC;
|
||||
|
||||
struct SObjectTag
|
||||
{
|
||||
FourCC type;
|
||||
UniqueID32 id;
|
||||
u32 id;
|
||||
bool operator!=(const SObjectTag& other) const {return id != other.id;}
|
||||
bool operator==(const SObjectTag& other) const {return id == other.id;}
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -62,4 +66,14 @@ using TAreaId = u32;
|
||||
|
||||
}
|
||||
|
||||
namespace std
|
||||
{
|
||||
template<>
|
||||
struct hash<Retro::SObjectTag>
|
||||
{
|
||||
inline size_t operator()(const Retro::SObjectTag& tag) const
|
||||
{return tag.id;}
|
||||
};
|
||||
}
|
||||
|
||||
#endif // __RETRO_TYPES_HPP__
|
||||
|
||||
Reference in New Issue
Block a user