mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
fahhh
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
namespace RBX {
|
||||
|
||||
template <typename Enum, typename Storage> class CompactEnum
|
||||
{
|
||||
public:
|
||||
CompactEnum()
|
||||
{
|
||||
}
|
||||
|
||||
CompactEnum(Enum value): data(value)
|
||||
{
|
||||
}
|
||||
|
||||
operator Enum() const
|
||||
{
|
||||
return static_cast<Enum>(data);
|
||||
}
|
||||
|
||||
private:
|
||||
Storage data;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user