CommonLibSSE (Parapets fork)
FxDelegateHandler.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/G/GRefCountBase.h"
4 #include "RE/G/GStats.h"
5 
6 namespace RE
7 {
8  class FxDelegateArgs;
9  class GString;
10 
11  class FxDelegateHandler : public GRefCountBase<FxDelegateHandler, GStatGroups::kGStat_Default_Mem>
12  {
13  public:
14  inline static constexpr auto RTTI = RTTI_FxDelegateHandler;
15 
16  using CallbackFn = void(const FxDelegateArgs& a_params);
17 
19  {
20  public:
21  inline static constexpr auto RTTI = RTTI_FxDelegateHandler__CallbackProcessor;
22 
23  virtual ~CallbackProcessor() = default; // 00
24 
25  // add
26  virtual void Process(const GString& a_methodName, CallbackFn* a_method) = 0; // 01
27  };
28  static_assert(sizeof(CallbackProcessor) == 0x8);
29 
30  ~FxDelegateHandler() override = default; // 00
31 
32  // add
33  virtual void Accept(CallbackProcessor* a_cbReg) = 0; // 01
34  };
35  static_assert(sizeof(FxDelegateHandler) == 0x10);
36 }
Definition: FxDelegateArgs.h:13
Definition: FxDelegateHandler.h:19
static constexpr auto RTTI
Definition: FxDelegateHandler.h:21
virtual void Process(const GString &a_methodName, CallbackFn *a_method)=0
Definition: FxDelegateHandler.h:12
void(const FxDelegateArgs &a_params) CallbackFn
Definition: FxDelegateHandler.h:16
virtual void Accept(CallbackProcessor *a_cbReg)=0
static constexpr auto RTTI
Definition: FxDelegateHandler.h:14
~FxDelegateHandler() override=default
Definition: GRefCountBase.h:12
Definition: GString.h:8
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_FxDelegateHandler__CallbackProcessor
Definition: Offsets_RTTI.h:4824
constexpr REL::ID RTTI_FxDelegateHandler
Definition: Offsets_RTTI.h:4823