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

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

View File

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

View File

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

View File

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