mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-10 14:07:56 +00:00
FShowFlags: Remove use of cpp file
Now that these constructs are constexpr capable, we can make use of constexpr here to contain it fully within the header.
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
#include "FShowFlags.h"
|
|
||||||
|
|
||||||
const FShowFlags gkGameModeShowFlags = EShowFlag::MergedWorld | EShowFlag::ObjectGeometry | EShowFlag::Sky;
|
|
||||||
@@ -19,7 +19,7 @@ enum class EShowFlag : uint32
|
|||||||
};
|
};
|
||||||
DECLARE_FLAGS_ENUMCLASS(EShowFlag, FShowFlags)
|
DECLARE_FLAGS_ENUMCLASS(EShowFlag, FShowFlags)
|
||||||
|
|
||||||
extern const FShowFlags gkGameModeShowFlags;
|
constexpr inline FShowFlags gkGameModeShowFlags{EShowFlag::MergedWorld | EShowFlag::ObjectGeometry | EShowFlag::Sky};
|
||||||
|
|
||||||
#endif // FSHOWFLAGS
|
#endif // FSHOWFLAGS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user