elemental: Add std::hash specialization for e_elemental_skillmode (#6619)

Required for e_elemental_skillmode to be used as a key in std::unordered_map.
See also #6591.
This commit is contained in:
merry
2022-02-16 20:23:36 +00:00
committed by GitHub
parent 84248255b7
commit 31c7e4b157

View File

@@ -26,6 +26,14 @@ enum e_elemental_skillmode : uint8 {
EL_SKILLMODE_AGGRESSIVE = 0x4,
};
#if __cplusplus < 201402L
namespace std {
template <> struct hash<e_elemental_skillmode> {
size_t operator() (const e_elemental_skillmode& t) const { return size_t(t); }
};
}
#endif
///Enum of Elemental ID
enum elemental_elementalid : uint16 {
// Sorcerer's Elementals