JUtils
A unity utilities library
JUtils.BaseEventChannel< T > Class Template Reference

The base class for an simple event channel More...

Inheritance diagram for JUtils.BaseEventChannel< T >:
Collaboration diagram for JUtils.BaseEventChannel< T >:

Public Member Functions

void AddListener (Action< T > listener)
 Add a listener to this event channel More...
 
void RemoveListener (Action< T > listener)
 Remove a listener from this event channel More...
 
virtual void InvokeUnsafe (T argument)
 Unsafe version of the EventChannelExtensions.Invoke function. This is directly on the class, but it does not have check if the channel is null or not. More...
 

Detailed Description

The base class for an simple event channel

Event channels are scriptable objects that can dynamically be assigned

When inheriting this class, it is recommended to leave the body empty

Member Function Documentation

◆ AddListener()

void JUtils.BaseEventChannel< T >.AddListener ( Action< T >  listener)
inline

Add a listener to this event channel

◆ InvokeUnsafe()

virtual void JUtils.BaseEventChannel< T >.InvokeUnsafe ( argument)
inlinevirtual

Unsafe version of the EventChannelExtensions.Invoke function. This is directly on the class, but it does not have check if the channel is null or not.

Parameters
argument

◆ RemoveListener()

void JUtils.BaseEventChannel< T >.RemoveListener ( Action< T >  listener)
inline

Remove a listener from this event channel


The documentation for this class was generated from the following file: