Add support for object reference wrappers usage in hash maps and dictionaries

This commit is contained in:
Wojtek Figat
2021-04-16 15:47:26 +02:00
parent cca8200794
commit eab3631c33
4 changed files with 24 additions and 0 deletions

View File

@@ -318,3 +318,9 @@ public:
OnSet(object);
}
};
template<typename T>
uint32 GetHash(const ScriptingObjectReference<T>& key)
{
return GetHash(key.GetID());
}