ValidateMinFlags

Validates, both at compile time (template param) or at runtime (function param), that the specified EMinClientFlags flags are valid.

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTEnum.h

Include

#include "NUTEnum.h"

Syntax

template<EMinClientFlags CompileTimeFlags>
EMinClientFlags ValidateMinFlags
(
    EMinClientFlags RuntimeFlags
)

Remarks

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

Returns the flags, so that validation can be done as they are assigned to a value

Parameters

Parameter

Description

CompileTimeFlags

The compile-time flag list to be checked

RuntimeFlags

The runtime flag list to be checked

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss