Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/uLang > API/Runtime/uLangCore/uLang/Common > API/Runtime/uLangCore/uLang/Common/Misc
Inheritance Hierarchy
- TEventRegistrar
- TEvent
References
| Module | uLangCore |
| Header | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Misc/Event.h |
| Include | #include "uLang/Common/Misc/Event.h" |
Syntax
template<typename... ParamTypes>
class TEventRegistrar
Remarks
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
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< SRegisteredListener > | _Listeners | ||
| SubscriberId | _NextId |
Constructors
No constructors are accessible with public or protected access.
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | IsBound () |
||
| int32_t | Num () |
||
| void | Reset () |
||
| SubscriberId | Subscribe
(
FunctorType&& InFunc |
||
| SubscriberId | Subscribe
(
const FunctionType& Listener |
||
| bool | Unsubscribe
(
const SubscriberId ListenerId |
Classes
| Type | Name | Description | |
|---|---|---|---|
| SRegisteredListener |
Typedefs
| Name | Description |
|---|---|
| FunctionType | |
| SubscriberId |