1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

suggested changes

This commit is contained in:
SoundSSGood
2022-11-30 17:57:39 +02:00
parent 3bf0cfe4fa
commit 45a3064e5d
4 changed files with 45 additions and 37 deletions

View File

@@ -1054,6 +1054,14 @@ public:
ID_LIKE_CLASS_COMMON(ArtifactID, EArtifactID)
EArtifactID num;
struct hash
{
size_t operator()(const ArtifactID & aid) const
{
return std::hash<int>()(aid.num);
}
};
};
ID_LIKE_OPERATORS(ArtifactID, ArtifactID::EArtifactID)