CommonLibVR
bhkSerializable.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/bhkRefObject.h"
4 
5 namespace RE
6 {
7  class ahkpWorld;
8  class hkpWorld;
9  class bhkWorld;
10 
12  {
13  public:
14  inline static constexpr auto RTTI = RTTI_bhkSerializable;
15  inline static constexpr auto Ni_RTTI = NiRTTI_bhkSerializable;
16  inline static constexpr auto VTABLE = VTABLE_bhkSerializable;
17 
18  ~bhkSerializable() override; // 00
19 
20  // override (bhkRefObject)
21  const NiRTTI* GetRTTI() const override; // 02
22  void LoadBinary(NiStream& a_stream) override; // 18
23  void LinkObject(NiStream& a_stream) override; // 19
24  bool RegisterStreamables(NiStream& a_stream) override; // 1A - { return NiObject::RegisterStreamables(a_stream); }
25  void SaveBinary(NiStream& a_stream) override; // 1B
26  void SetReferencedObject(hkReferencedObject* a_object) override; // 25
27 
28  // add
29  virtual hkpWorld* GetWorld1(); // 27 - { return 0; }
30  virtual ahkpWorld* GetWorld2(); // 28 - { return 0; }
31  virtual void MoveToWorld(bhkWorld* a_world); // 29
32  virtual void RemoveFromCurrentWorld(); // 2A
33  virtual void Unk_2B(void); // 2B
34  virtual void Unk_2C(void); // 2C - { return 1; }
35  virtual void Unk_2D(void); // 2D
36  virtual void Unk_2E(void) = 0; // 2E
37  virtual void Unk_2F(void) = 0; // 2F
38  virtual void Unk_30(void); // 30
39  virtual void Unk_31(void); // 31
40 
41  // members
43  private:
44  KEEP_FOR_RE()
45  };
46  static_assert(sizeof(bhkSerializable) == 0x20);
47 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: NiRTTI.h:6
Definition: NiStream.h:29
Definition: ahkpWorld.h:10
Definition: bhkRefObject.h:11
Definition: bhkSerializable.h:12
void LinkObject(NiStream &a_stream) override
virtual ahkpWorld * GetWorld2()
static constexpr auto RTTI
Definition: bhkSerializable.h:14
void SaveBinary(NiStream &a_stream) override
virtual void Unk_2E(void)=0
const NiRTTI * GetRTTI() const override
bool RegisterStreamables(NiStream &a_stream) override
virtual void Unk_31(void)
virtual void Unk_2F(void)=0
~bhkSerializable() override
static constexpr auto VTABLE
Definition: bhkSerializable.h:16
bhkSerializable * serializable
Definition: bhkSerializable.h:42
virtual void MoveToWorld(bhkWorld *a_world)
virtual void Unk_2D(void)
void SetReferencedObject(hkReferencedObject *a_object) override
virtual void RemoveFromCurrentWorld()
virtual void Unk_30(void)
static constexpr auto Ni_RTTI
Definition: bhkSerializable.h:15
virtual void Unk_2C(void)
virtual void Unk_2B(void)
void LoadBinary(NiStream &a_stream) override
virtual hkpWorld * GetWorld1()
Definition: bhkWorld.h:14
Definition: hkReferencedObject.h:11
Definition: hkpWorld.h:62
Definition: AbsorbEffect.h:6
constexpr REL::ID NiRTTI_bhkSerializable(static_cast< std::uint64_t >(525109))
constexpr REL::ID RTTI_bhkSerializable(static_cast< std::uint64_t >(685161))
constexpr std::array< REL::ID, 1 > VTABLE_bhkSerializable
Definition: Offsets_VTABLE.h:13360