mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-05 03:43:40 +00:00
32 lines
656 B
C++
32 lines
656 B
C++
#pragma once
|
|
|
|
enum class CommandFlagValue : unsigned short
|
|
{
|
|
None = 0,
|
|
Usage = 1,
|
|
Visibility2 = 2,
|
|
Visibility4 = 4,
|
|
Visibility6 = 6,
|
|
Sync = 8,
|
|
Execute = 16,
|
|
Type = 32,
|
|
Cheat = 64,
|
|
};
|
|
struct CommandFlag
|
|
{
|
|
CommandFlagValue value;
|
|
|
|
constexpr bool operator==(CommandFlag const& rhs) const noexcept
|
|
{
|
|
return value == rhs.value;
|
|
}
|
|
constexpr bool operator!=(CommandFlag const& rhs) const noexcept
|
|
{
|
|
return value != rhs.value;
|
|
}
|
|
CommandFlag& operator|=(CommandFlag const& rhs)
|
|
{
|
|
value = (CommandFlagValue)((char)rhs.value | (char)value);
|
|
return *this;
|
|
}
|
|
}; |