28 [[nodiscard]]
const std::string &
key()
const
48 return std::hash<std::string>{}(key.key());
A type-safe wrapper for artifact keys.
ArtifactKey(std::string key)
Constructs an ArtifactKey from a string value.
auto operator<=>(const ArtifactKey &other) const =default
const std::string & key() const
bool operator==(const ArtifactKey &other) const =default
std::size_t operator()(const porytiles::ArtifactKey &key) const noexcept