diff options
Diffstat (limited to 'generic/archdefs.h')
-rw-r--r-- | generic/archdefs.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/generic/archdefs.h b/generic/archdefs.h index 4e91ffd3..374ddeb0 100644 --- a/generic/archdefs.h +++ b/generic/archdefs.h @@ -64,8 +64,18 @@ struct PipId unsigned int hash() const { return index; } }; +struct DecalId +{ + IdStringList name; + bool active = false; + DecalId() : name(), active(false){}; + DecalId(IdStringList name, bool active) : name(name), active(active){}; + bool operator==(const DecalId &other) const { return name == other.name && active == other.active; } + bool operator!=(const DecalId &other) const { return name != other.name || active != other.active; } + unsigned int hash() const { return mkhash(name.hash(), active); } +}; + typedef IdStringList GroupId; -typedef IdStringList DecalId; typedef IdString BelBucketId; typedef IdString ClusterId; |