CommonLibSSE NG
BGSEntryPointFunctionDataActivateChoice.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "RE/B/BSFixedString.h"
5 #include "RE/F/FormTypes.h"
6 
7 namespace RE
8 {
10  {
11  public:
12  inline static constexpr auto RTTI = RTTI_BGSEntryPointFunctionDataActivateChoice;
13 
14  enum class Flag1
15  {
16  kNone = 0,
17  kRunImmediately = 1,
18  kReplaceDefault = 2
19  };
20 
22 
23  // override (BGSEntryPointFunctionData)
24  FunctionType GetType() const override; // 01 - { return kDataActivateChoice; }
25  bool LoadFunctionData(TESFile* a_mod) override; // 02
26  void ResolveForms(TESFile* a_mod) override; // 03
27  void Unk_05(void) override; // 05
28  void SetPerk(BGSPerk* a_perk) override; // 06 - { perk = a_perk; }
29  BGSPerk* GetPerk() override; // 07 - { return perk; }
30 
31  [[nodiscard]] bool ReplacesDefault() const;
32  [[nodiscard]] bool RunsImmediately() const;
33 
34  // members
36  BGSPerk* perk; // 10
39  std::uint16_t flags2; // 22
40  std::uint32_t pad24; // 24
41  };
42  static_assert(sizeof(BGSEntryPointFunctionDataActivateChoice) == 0x28);
43 }
Definition: BGSEntryPointFunctionDataActivateChoice.h:10
std::uint32_t pad24
Definition: BGSEntryPointFunctionDataActivateChoice.h:40
FunctionType GetType() const override
BGSPerk * perk
Definition: BGSEntryPointFunctionDataActivateChoice.h:36
SpellItem * appliedSpell
Definition: BGSEntryPointFunctionDataActivateChoice.h:37
void SetPerk(BGSPerk *a_perk) override
std::uint16_t flags2
Definition: BGSEntryPointFunctionDataActivateChoice.h:39
BSFixedString label
Definition: BGSEntryPointFunctionDataActivateChoice.h:35
void ResolveForms(TESFile *a_mod) override
stl::enumeration< Flag1, std::uint16_t > flags1
Definition: BGSEntryPointFunctionDataActivateChoice.h:38
Flag1
Definition: BGSEntryPointFunctionDataActivateChoice.h:15
static constexpr auto RTTI
Definition: BGSEntryPointFunctionDataActivateChoice.h:12
bool LoadFunctionData(TESFile *a_mod) override
Definition: BGSEntryPointFunctionData.h:10
FunctionType
Definition: BGSEntryPointFunctionData.h:15
Definition: BGSPerk.h:31
Definition: SpellItem.h:16
Definition: TESFile.h:17
Definition: AbsorbEffect.h:6
constexpr REL::VariantID RTTI_BGSEntryPointFunctionDataActivateChoice(685373, 393153, 0x1ee4920)