Wrapper of Il2CppDelegate. More...
#include <Delegates.hpp>
Public Member Functions | |
IL2CPP::Il2CppObject * | GetInstance () const |
Get instance of delegate. | |
BNM::MethodBase | GetMethod () const |
Get method of delegate. | |
DelegateBase * | Create (BNM::MethodBase method) |
Create delegate from method. | |
bool | IsValid () const noexcept |
Check if delegate is valid. | |
operator bool () const noexcept | |
Check if delegate is valid. | |
template<typename NewRet> | |
Delegate< NewRet > & | cast () const |
Cast delegate to be able to invoke it. | |
Wrapper of Il2CppDelegate.
DelegateBase * BNM::DelegateBase::Create | ( | BNM::MethodBase | method | ) |
Create delegate from method.
method | Method that will be used in new delegate |
|
inline |
Get instance of delegate.
|
inline |
Get method of delegate.