diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-14 19:57:45 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-14 19:57:45 +0100 |
commit | add8724446fdeae1aaec9b07544cf7a5475a9bfe (patch) | |
tree | 7c51cf0d65f8f0d906a0abe2b29bad916dcf83e8 /src/crepe/api/Asset.cpp | |
parent | ab0b4923c4f49e7a28f6d17e994d3e013ca344bb (diff) |
ResourceManager working + tested
Diffstat (limited to 'src/crepe/api/Asset.cpp')
-rw-r--r-- | src/crepe/api/Asset.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crepe/api/Asset.cpp b/src/crepe/api/Asset.cpp index 1887814..5271cf7 100644 --- a/src/crepe/api/Asset.cpp +++ b/src/crepe/api/Asset.cpp @@ -48,6 +48,10 @@ string Asset::whereami() const noexcept { return path; } +bool Asset::operator==(const Asset & other) const noexcept { + return this->src == other.src; +} + size_t std::hash<const Asset>::operator()(const Asset & asset) const noexcept { return std::hash<string>{}(asset.get_path()); }; |