mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 12:14:11 +01:00
Codechange: Allow using EnumBitSet over network commands.
This commit is contained in:
committed by
Peter Nelson
parent
fdb3555147
commit
6d1f56ce6b
@@ -193,6 +193,15 @@ public:
|
||||
return EnumBitSet{static_cast<Tstorage>(this->data & other.data)};
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the raw value behind this EnumBitSet.
|
||||
* @returns the raw value.
|
||||
*/
|
||||
inline constexpr Tstorage base() const noexcept
|
||||
{
|
||||
return this->data;
|
||||
}
|
||||
|
||||
private:
|
||||
Tstorage data; ///< Bitmask of enum values.
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user