1
0
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:
Peter Nelson
2025-01-29 17:47:47 +00:00
committed by Peter Nelson
parent fdb3555147
commit 6d1f56ce6b
2 changed files with 16 additions and 0 deletions

View File

@@ -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.
};