CommonLibVR
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(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  static 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  private:
45  KEEP_FOR_RE()
46  };
47  static_assert(sizeof(TESActionData) == 0x60);
48 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
#define RELOCATION_ID(SE, AE)
Definition: PCH.h:702
Definition: Relocation.h:210
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 REL::ID RTTI_TESActionData(static_cast< std::uint64_t >(684945))
constexpr std::array< REL::ID, 1 > VTABLE_TESActionData
Definition: Offsets_VTABLE.h:12798