CommonLibSSE NG
TESActionData.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BGSActionData.h"
4 
5 namespace RE
6 {
7  class TESActionData : public BGSActionData
8  {
9  public:
10  inline static constexpr auto RTTI = RTTI_TESActionData;
11  inline static constexpr auto VTABLE = VTABLE_TESActionData;
12 
13  virtual ~TESActionData() override; // 00
14 
15  // override (ActionInput)
16  ActorState* GetSourceActorState() const override; // 01
17  void Unk_02(void) override; // 02 - { return 0; }
18  BGSAnimationSequencer* GetSourceSequencer() const override; // 03
19 
20  // override (BGSActionData)
21  BGSActionData* Clone() const override; // 04
22  bool Process() override; // 05
23 
25  {
26  auto tesActionData = malloc<TESActionData>();
27  std::memset(reinterpret_cast<void*>(tesActionData), 0, sizeof(TESActionData));
28  if (tesActionData) {
29  tesActionData->Ctor();
30  }
31  return tesActionData;
32  }
33 
34  private:
35  TESActionData* Ctor()
36  {
37  using func_t = decltype(&TESActionData::Ctor);
38  REL::Relocation<func_t> func{ RELOCATION_ID(15916, 41558) };
39  TESActionData* tesActionData = func(this);
40  stl::emplace_vtable<TESActionData>(tesActionData);
41  return tesActionData;
42  }
43  };
44  static_assert(sizeof(TESActionData) == 0x60);
45 }
#define RELOCATION_ID(a_se, a_ae)
Definition: PCH.h:724
Definition: Relocation.h:204
Definition: ActorState.h:93
Definition: BGSActionData.h:11
Definition: BGSAnimationSequencer.h:11
Definition: TESActionData.h:8
virtual ~TESActionData() override
static constexpr auto VTABLE
Definition: TESActionData.h:11
BGSActionData * Clone() const override
static TESActionData * Create()
Definition: TESActionData.h:24
BGSAnimationSequencer * GetSourceSequencer() const override
ActorState * GetSourceActorState() const override
void Unk_02(void) override
static constexpr auto RTTI
Definition: TESActionData.h:10
bool Process() override
Definition: AbsorbEffect.h:6
constexpr std::array< REL::VariantID, 1 > VTABLE_TESActionData
Definition: Offsets_VTABLE.h:400
constexpr REL::VariantID RTTI_TESActionData(684945, 392682, 0x1edcaa0)