CommonLibSSE NG
Loading...
Searching...
No Matches
FxDelegateHandler.h
Go to the documentation of this file.
1#pragma once
2
4#include "RE/G/GStats.h"
5
6namespace 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:12
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::VariantID RTTI_FxDelegateHandler(686412, 394232, 0x1efd7d8)
constexpr REL::VariantID RTTI_FxDelegateHandler__CallbackProcessor(691072, 398927, 0x1f6bd18)