|
constexpr | Event ()=default |
| Create empty event base.
|
|
template<typename OtherType> |
| Event (const Event< OtherType > &other) |
| Copy event.
|
|
| Event (const IL2CPP::EventInfo *info) |
| Create event from il2cpp event.
|
|
| Event (const EventBase &other) |
| Convert base event to typed event.
|
|
Event< Ret, Parameters... > & | operator[] (void *instance) |
| Operator for setting instance.
|
|
Event< Ret, Parameters... > & | operator[] (IL2CPP::Il2CppObject *instance) |
| Operator for setting instance.
|
|
Event< Ret, Parameters... > & | operator[] (UnityEngine::Object *instance) |
| Operator for setting instance.
|
|
void | Add (Delegate< Ret > *delegate) |
| Add delegate to event.
|
|
Event< Ret, Parameters... > & | operator+= (Delegate< Ret > *delegate) |
| Operator for adding delegate to event.
|
|
void | Remove (Delegate< Ret > *delegate) |
| Remove delegate from event.
|
|
Event< Ret, Parameters... > & | operator-= (Delegate< Ret > *v) |
| Operator for removing delegate from event.
|
|
Ret | Raise (Parameters ...parameters) const |
| Raise (call) event.
|
|
Ret | operator() (Parameters ...parameters) const |
| Raise (call) event.
|
|
Event< Ret > & | operator= (const EventBase &other) |
| Convert base event to typed event.
|
|
constexpr | EventBase () noexcept=default |
| Create empty event base.
|
|
| EventBase (const EventBase &other)=default |
| Copy event.
|
|
| EventBase (const IL2CPP::EventInfo *info) |
| Create event from il2cpp event.
|
|
EventBase & | SetInstance (IL2CPP::Il2CppObject *instance) |
| Set event instance if it's non-static.
|
|
EventBase & | operator[] (void *instance) |
| Operator for setting instance.
|
|
EventBase & | operator[] (IL2CPP::Il2CppObject *instance) |
| Operator for setting instance.
|
|
EventBase & | operator[] (UnityEngine::Object *instance) |
| Operator for setting instance.
|
|
bool | IsValid () const noexcept |
| Check if event is valid.
|
|
std::string | str () const |
| Get full event name.
|
|
template<typename NewRet, typename ... NewParameters> |
Event< NewRet, NewParameters... > & | cast () const |
| Cast event to be able to add, remove and raise it.
|
|
template<typename Ret = void, typename ... Parameters>
struct BNM::Event< Ret, Parameters >
Typed class for working with il2cpp events.
This class provides API for adding, removing and rising event.
- Template Parameters
-
Ret | Return type of event |
Parameters | Parameters of event |