CommonLibSSE (Parapets fork)
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 Flag
15  {
16  kNone = 0,
17  kRunImmediately = 1,
18  kReplaceDefault = 2
19  };
20 
22 
23  // override (BGSEntryPointFunctionData)
24  ENTRY_POINT_FUNCTION_DATA GetType() const override; // 01 - { return kDataActivateChoice; }
25  bool LoadImpl(TESFile* a_mod) override; // 02
26  void InitItem(TESForm* a_form) override; // 03
27  std::uint16_t GetID() override; // 05
28  void SetParentPerk(BGSPerk* a_perk) override; // 06 - { perk = a_perk; }
29  BGSPerk* GetParentPerk() 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 id; // 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
BGSPerk * perk
Definition: BGSEntryPointFunctionDataActivateChoice.h:36
stl::enumeration< Flag, std::uint16_t > flags
Definition: BGSEntryPointFunctionDataActivateChoice.h:38
SpellItem * appliedSpell
Definition: BGSEntryPointFunctionDataActivateChoice.h:37
void SetParentPerk(BGSPerk *a_perk) override
BSFixedString label
Definition: BGSEntryPointFunctionDataActivateChoice.h:35
std::uint16_t id
Definition: BGSEntryPointFunctionDataActivateChoice.h:39
Flag
Definition: BGSEntryPointFunctionDataActivateChoice.h:15
bool LoadImpl(TESFile *a_mod) override
static constexpr auto RTTI
Definition: BGSEntryPointFunctionDataActivateChoice.h:12
ENTRY_POINT_FUNCTION_DATA GetType() const override
void InitItem(TESForm *a_form) override
Definition: BGSEntryPointFunctionData.h:11
ENTRY_POINT_FUNCTION_DATA
Definition: BGSEntryPointFunctionData.h:16
Definition: BGSPerk.h:31
Definition: SpellItem.h:16
Definition: TESFile.h:14
Definition: TESForm.h:34
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BGSEntryPointFunctionDataActivateChoice
Definition: Offsets_RTTI.h:1286