![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Event.h>
Classes | |
| struct | SRegisteredListener |
Public Types | |
| using | FunctionType = uLang::TFunction< void(ParamTypes...)> |
| using | SubscriberId = EventSubscriberId |
Public Member Functions | |
| template<typename FunctorType , typename = typename TEnableIf< TAnd< TNot<TIsTFunction<typename TDecay<FunctorType>::Type>>, Private::TFuncCanBindToFunctor<void(ParamTypes...), FunctorType> >::Value >::Type> | |
| SubscriberId | Subscribe (FunctorType &&InFunc) |
| SubscriberId | Subscribe (const FunctionType &Listener) |
| bool | Unsubscribe (const SubscriberId ListenerId) |
| bool | IsBound () const |
| int32_t | Num () const |
| void | Reset () |
Protected Attributes | |
| SubscriberId | _NextId = 0 |
| TArray< SRegisteredListener > | _Listeners |
Friends | |
| template<typename... > | |
| class | TEvent |
Registration portion of an TEvent<>. Split out as a standalone class, so systems can expose direct registration functionality without exposing execution rights, like so:
class CMySystem
{
public:
using CMyEvent = TEvent<int>
CMyEvent::Registrar& GetEvent() { return MyEvent; } // For external subscription
private:
CMyEvent MyEvent;
| using uLang::TEventRegistrar< ParamTypes >::FunctionType = uLang::TFunction<void(ParamTypes...)> |
| using uLang::TEventRegistrar< ParamTypes >::SubscriberId = EventSubscriberId |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |