CommonLibVR
REFREventCallbacks.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace RE
6 {
7  class BSStorage;
8 
9  namespace REFREventCallbacks
10  {
12  {
13  public:
14  inline static constexpr auto RTTI = RTTI_REFREventCallbacks__IEventCallback;
15  inline static constexpr auto VTABLE = VTABLE_REFREventCallbacks__IEventCallback;
16 
17  virtual ~IEventCallback(); // 00
18 
19  // add
20  virtual void operator()() = 0; // 01
21  virtual bool Save(BSStorage& a_storage); // 02
22  virtual const BSFixedString* GetType() = 0; // 03
23  virtual bool Load(const BSStorage& a_storage); // 04
24  };
25  static_assert(sizeof(IEventCallback) == 0x10);
26  }
27 }
Definition: BSStorage.h:14
Definition: REFREventCallbacks.h:12
static constexpr auto VTABLE
Definition: REFREventCallbacks.h:15
virtual bool Load(const BSStorage &a_storage)
virtual const BSFixedString * GetType()=0
virtual bool Save(BSStorage &a_storage)
static constexpr auto RTTI
Definition: REFREventCallbacks.h:14
Definition: AbsorbEffect.h:6
constexpr std::array< REL::ID, 1 > VTABLE_REFREventCallbacks__IEventCallback
Definition: Offsets_VTABLE.h:12591
constexpr REL::ID RTTI_REFREventCallbacks__IEventCallback(static_cast< std::uint64_t >(685198))
Definition: BSIntrusiveRefCounted.h:8