BNM 2.4.0
 
Loading...
Searching...
No Matches
BNM::DelegateBase Struct Reference

Wrapper of Il2CppDelegate. More...

#include <Delegates.hpp>

Public Member Functions

IL2CPP::Il2CppObject * GetInstance () const
 Get instance of delegate.
 
MethodBase GetMethod () const
 Get method of delegate.
 
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.
 

Detailed Description

Wrapper of Il2CppDelegate.

Member Function Documentation

◆ GetInstance()

IL2CPP::Il2CppObject * BNM::DelegateBase::GetInstance ( ) const
inline

Get instance of delegate.

Returns
Instance if delegate isn't null, otherwise null.

◆ GetMethod()

MethodBase BNM::DelegateBase::GetMethod ( ) const
inline

Get method of delegate.

Returns
MethodBase if delegate isn't null, otherwise empty MethodBase.