CommonLibSSE NG
FOCollisionListener.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSTArray.h"
5 #include "RE/N/NiSmartPointer.h"
6 
7 namespace RE
8 {
9  class ActorCause;
10  class bhkRigidBody;
11  class TESObjectREFR;
12 
14  public bhkBackfaceContactListener, // 00
15  public BSTSingletonSDM<FOCollisionListener> // 08
16  {
17  public:
18  inline static constexpr auto RTTI = RTTI_FOCollisionListener;
19  inline static constexpr auto VTABLE = VTABLE_FOCollisionListener;
20 
22  {
23  public:
24  // members
26  float damage; // 04
27  std::uint32_t pad08; // 08
29  };
30  static_assert(sizeof(ObjectDamageImpactData) == 0x18);
31 
32  // override (bhkBackfaceContactListener)
33  void ContactPointCallback(const hkpContactPointEvent&) override; // 00
34 
35  ~FOCollisionListener() override; // 00
36 
38  {
39  REL::Relocation<FOCollisionListener**> singleton{ RELOCATION_ID(514284, 400444) };
40  return *singleton;
41  }
42 
43  // members
45  };
46  static_assert(sizeof(FOCollisionListener) == 0x28);
47 }
#define RELOCATION_ID(a_se, a_ae)
Definition: PCH.h:724
Definition: Relocation.h:204
Definition: BSTArray.h:377
Definition: FOCollisionListener.h:16
BSTArray< ObjectDamageImpactData > damageImpacts
Definition: FOCollisionListener.h:44
static constexpr auto VTABLE
Definition: FOCollisionListener.h:19
static FOCollisionListener * GetSingleton()
Definition: FOCollisionListener.h:37
~FOCollisionListener() override
static constexpr auto RTTI
Definition: FOCollisionListener.h:18
void ContactPointCallback(const hkpContactPointEvent &) override
Definition: NiSmartPointer.h:9
Definition: bhkBackfaceContactListener.h:8
Definition: AbsorbEffect.h:6
constexpr std::array< REL::VariantID, 1 > VTABLE_FOCollisionListener
Definition: Offsets_VTABLE.h:983
constexpr REL::VariantID RTTI_FOCollisionListener(685486, 393271, 0x1ee6b60)
Definition: BSTSingleton.h:50
Definition: FOCollisionListener.h:22
NiPointer< bhkRigidBody > body
Definition: FOCollisionListener.h:25
float damage
Definition: FOCollisionListener.h:26
NiPointer< ActorCause > actorCause
Definition: FOCollisionListener.h:28
std::uint32_t pad08
Definition: FOCollisionListener.h:27
Definition: hkpContactPointEvent.h:15