CommonLibSSE (powerof3)
GFxActionControl.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/G/GFxState.h"
4 
5 namespace RE
6 {
7  class GFxActionControl : public GFxState
8  {
9  public:
10  enum class ActionControlFlags
11  {
12  kNone = 0,
13  kVerbose = 1 << 0,
14  kSuppressErrors = 1 << 1,
15  kLogRootFilenames = 1 << 2, // Display filename for root movie
16  kLogChildFilenames = 1 << 3, // Display filename for child movie
17  kLongFilenames = 1 << 4 // Display full path
18  };
19 
21  GFxState(StateType::kActionControl),
22  actionFlags(a_actionFlags),
23  pad1C(0)
24  {}
25 
26  [[nodiscard]] constexpr ActionControlFlags GetFlags() const { return *actionFlags; }
27  constexpr void SetFlags(ActionControlFlags a_actionFlags) { actionFlags = a_actionFlags; }
28 
31 
34 
37 
40 
43 
46 
47  // members
49  std::uint32_t pad1C; // 1C
50  };
51  static_assert(sizeof(GFxActionControl) == 0x20);
52 }
constexpr EnumSet & reset(Args... a_args) noexcept requires(std
Definition: EnumSet.h:78
constexpr EnumSet & set(Args... a_args) noexcept requires(std
Definition: EnumSet.h:58
Definition: GFxActionControl.h:8
constexpr void SetErrorSuppression() noexcept
Definition: GFxActionControl.h:32
constexpr void SetLongFilenameLogging() noexcept
Definition: GFxActionControl.h:44
constexpr void SetRootFilenameLogging() noexcept
Definition: GFxActionControl.h:35
std::uint32_t pad1C
Definition: GFxActionControl.h:49
ActionControlFlags
Definition: GFxActionControl.h:11
constexpr void SetAllFilenameLogging() noexcept
Definition: GFxActionControl.h:41
constexpr void UnsetChildFilenameLogging() noexcept
Definition: GFxActionControl.h:39
constexpr void SetChildFilenameLogging() noexcept
Definition: GFxActionControl.h:38
constexpr void SetVerboseLogging() noexcept
Definition: GFxActionControl.h:29
constexpr ActionControlFlags GetFlags() const
Definition: GFxActionControl.h:26
REX::EnumSet< ActionControlFlags, std::uint32_t > actionFlags
Definition: GFxActionControl.h:48
constexpr void UnsetAllFilenameLogging() noexcept
Definition: GFxActionControl.h:42
constexpr void SetFlags(ActionControlFlags a_actionFlags)
Definition: GFxActionControl.h:27
constexpr void UnsetErrorSuppression() noexcept
Definition: GFxActionControl.h:33
constexpr void UnsetLongFilenameLogging() noexcept
Definition: GFxActionControl.h:45
constexpr void UnsetVerboseLogging() noexcept
Definition: GFxActionControl.h:30
GFxActionControl(ActionControlFlags a_actionFlags=ActionControlFlags::kLogChildFilenames)
Definition: GFxActionControl.h:20
constexpr void UnsetRootFilenameLogging() noexcept
Definition: GFxActionControl.h:36
Definition: GFxState.h:9
StateType
Definition: GFxState.h:16
Definition: AbsorbEffect.h:6