Module |
|
Header |
/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTEnum.h |
Include |
#include "NUTEnum.h" |
template<EMinClientFlags CompileTimeFlags>
EMinClientFlags ValidateMinFlags
(
EMinClientFlags RuntimeFlags
)
Validates, both at compile time (template param) or at runtime (function param), that the specified EMinClientFlags flags are valid.
When specifying the whole flag list in one assignment, do a compile time check using the template parameter. When modifying a runtime-written flag list, do a runtime check on the final flag variable using the function parameter.
Returns the flags, so that validation can be done as they are assigned to a value
Parameter |
Description |
---|---|
CompileTimeFlags |
The compile-time flag list to be checked |
RuntimeFlags |
The runtime flag list to be checked |