CommonLibSSE (powerof3)
TESFlora.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/F/FormTypes.h"
4 #include "RE/T/TESObjectACTI.h"
5 #include "RE/T/TESProduceForm.h"
6 
7 namespace RE
8 {
9  class TESFlora :
10  public TESObjectACTI, // 00
11  public TESProduceForm // C8
12  {
13  public:
14  inline static constexpr auto RTTI = RTTI_TESFlora;
15  inline static constexpr auto VTABLE = VTABLE_TESFlora;
16  inline static constexpr auto FORMTYPE = FormType::Flora;
17 
18  struct RecordFlags
19  {
20  enum RecordFlag : std::uint32_t
21  {
22  kDeleted = 1 << 5,
23  kIgnored = 1 << 12
24  };
25  };
26 
27  ~TESFlora() override; // 00
28 
29  // override (TESObjectACTI)
30  bool Load(TESFile* a_mod) override; // 06
31  void InitItemImpl() override; // 13
32  bool Activate(TESObjectREFR* a_targetRef, TESObjectREFR* a_activatorRef, std::uint8_t a_arg3, TESBoundObject* a_object, std::int32_t a_targetCount) override; // 37
33  bool GetActivateText(TESObjectREFR* a_activator, BSString& a_dst) override; // 4C
34  bool CalculateDoFavor(Actor* a_activator, bool a_arg2, TESObjectREFR* a_toActivate, float a_arg3) override; // 4D
35  };
36  static_assert(sizeof(TESFlora) == 0xE8);
37 }
Definition: Actor.h:133
Definition: TESBoundObject.h:24
Definition: TESFile.h:17
Definition: TESFlora.h:12
void InitItemImpl() override
bool CalculateDoFavor(Actor *a_activator, bool a_arg2, TESObjectREFR *a_toActivate, float a_arg3) override
static constexpr auto VTABLE
Definition: TESFlora.h:15
static constexpr auto FORMTYPE
Definition: TESFlora.h:16
static constexpr auto RTTI
Definition: TESFlora.h:14
bool Load(TESFile *a_mod) override
bool Activate(TESObjectREFR *a_targetRef, TESObjectREFR *a_activatorRef, std::uint8_t a_arg3, TESBoundObject *a_object, std::int32_t a_targetCount) override
bool GetActivateText(TESObjectREFR *a_activator, BSString &a_dst) override
~TESFlora() override
Definition: TESObjectACTI.h:22
Definition: TESObjectREFR.h:114
Definition: TESProduceForm.h:25
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_TESFlora(static_cast< std::uint64_t >(685048))
constexpr std::array< REL::ID, 7 > VTABLE_TESFlora
Definition: Offsets_VTABLE.h:12825
Definition: TESFlora.h:19
RecordFlag
Definition: TESFlora.h:21
@ kIgnored
Definition: TESFlora.h:23
@ kDeleted
Definition: TESFlora.h:22