mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Added hasValue method to identifiers
This commit is contained in:
parent
b8f3de38c1
commit
31b04780c9
@ -52,6 +52,11 @@ public:
|
||||
num = value;
|
||||
}
|
||||
|
||||
constexpr bool hasValue() const
|
||||
{
|
||||
return num >= 0;
|
||||
}
|
||||
|
||||
struct hash
|
||||
{
|
||||
size_t operator()(const IdentifierBase & id) const
|
||||
|
Loading…
Reference in New Issue
Block a user