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

(cherry picked from commit eab3631c33)
This commit is contained in:
Wojtek Figat
2021-04-16 15:47:26 +02:00
parent 59af92bfc4
commit df1dfbec36
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());
}