BNM 2.5.0
 
Loading...
Searching...
No Matches
BNM::MulticastDelegateBase Struct Reference

Wrapper of Il2CppMulticastDelegate. More...

#include <Delegates.hpp>

Public Member Functions

std::vector< BNM::MethodBaseGetMethods () const
 Get methods of delegate.
 
void Add (DelegateBase *delegate)
 Add delegate.
 
DelegateBaseAdd (BNM::MethodBase method)
 Add method to delegate.
 
void Remove (DelegateBase *delegate)
 Remove delegate.
 
void operator+= (DelegateBase *delegate)
 
void operator+= (BNM::MethodBase method)
 
void operator-= (DelegateBase *delegate)
 
template<typename NewRet>
MulticastDelegate< NewRet > & cast () const
 Cast delegate to be able to invoke it.
 

Detailed Description

Wrapper of Il2CppMulticastDelegate.

Member Function Documentation

◆ Add() [1/2]

DelegateBase * BNM::MulticastDelegateBase::Add ( BNM::MethodBase method)

Add method to delegate.

Parameters
methodMethod to add
Returns
New added DelegateBase of method

◆ Add() [2/2]

void BNM::MulticastDelegateBase::Add ( DelegateBase * delegate)

Add delegate.

Parameters
delegateDelegate to add

◆ GetMethods()

std::vector< BNM::MethodBase > BNM::MulticastDelegateBase::GetMethods ( ) const
inline

Get methods of delegate.

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

◆ Remove()

void BNM::MulticastDelegateBase::Remove ( DelegateBase * delegate)

Remove delegate.

Parameters
delegateDelegate to remove