ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
IDelegateInvoker.hpp
1#pragma once
2
3namespace CP_SDK::Utils::Internals {
4
6 template<class t_Ret, class... t_Args>
8 {
9 public:
12 {
13
14 }
15
16 public:
18 int GetKind() const
19 {
20 return m_Kind;
21 }
22
23 public:
25 virtual bool IsValid() const = 0;
28 virtual bool EqualTo(const IDelegateInvoker<t_Ret, t_Args...>* p_Other) const = 0;
31 virtual t_Ret Invoke(t_Args... p_Args) const = 0;
32
33 protected:
34 int m_Kind;
35
36 };
37
38}
int GetKind() const
Get delegate invoker kind.
virtual bool EqualTo(const IDelegateInvoker< t_Ret, t_Args... > *p_Other) const =0
Is this invoker equal to an other invoker.
virtual bool IsValid() const =0
Is the delegate valid.
virtual t_Ret Invoke(t_Args... p_Args) const =0
Invoke this invoker.