2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 17:04:55 +00:00

various implementation

This commit is contained in:
Jack Andersen
2015-08-22 20:42:29 -10:00
parent 6577d4ca13
commit f3b5b9f49a
45 changed files with 580 additions and 84 deletions

View File

@@ -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__