|
| EventService (IEnumerable< IEventFactory > eventFactories) |
|
void | ClearObjectSubscriptions (NwObject? nwObject) |
|
TEvent | ProcessEvent< TEvent > (EventCallbackType eventCallbackType, TEvent eventData) |
|
void | Subscribe< TEvent, TFactory > (NwObject? nwObject, Action< TEvent > handler, EventCallbackType eventCallbackType=EventCallbackType.Before) |
|
void | Subscribe< TEvent, TFactory, TRegData > (NwObject? nwObject, TRegData registrationData, Action< TEvent > handler, EventCallbackType eventCallbackType=EventCallbackType.Before) |
|
void | SubscribeAll< TEvent, TFactory > (Action< TEvent > handler, EventCallbackType eventCallbackType=EventCallbackType.Before) |
|
void | SubscribeAll< TEvent, TFactory, TRegData > (TRegData registrationData, Action< TEvent > handler, EventCallbackType eventCallbackType=EventCallbackType.Before) |
|
void | Unsubscribe< TEvent, TFactory > (NwObject? nwObject, Action< TEvent > handler, EventCallbackType eventCallbackType=EventCallbackType.Before) |
|
void | UnsubscribeAll< TEvent, TFactory > (Action< TEvent > handler, EventCallbackType eventCallbackType=EventCallbackType.Before) |
|
◆ ProcessEvent< TEvent >()
TEvent Anvil.Services.EventService.ProcessEvent< TEvent > |
( |
EventCallbackType | eventCallbackType, |
|
|
TEvent | eventData ) |
|
inline |
◆ Subscribe< TEvent, TFactory >()
void Anvil.Services.EventService.Subscribe< TEvent, TFactory > |
( |
NwObject? | nwObject, |
|
|
Action< TEvent > | handler, |
|
|
EventCallbackType | eventCallbackType = EventCallbackType::Before ) |
|
inline |
- Type Constraints
-
TEvent | : | IEvent | |
TEvent | : | new() | |
TFactory | : | IEventFactory<NullRegistrationData> | |
◆ Subscribe< TEvent, TFactory, TRegData >()
void Anvil.Services.EventService.Subscribe< TEvent, TFactory, TRegData > |
( |
NwObject? | nwObject, |
|
|
TRegData | registrationData, |
|
|
Action< TEvent > | handler, |
|
|
EventCallbackType | eventCallbackType = EventCallbackType::Before ) |
|
inline |
- Type Constraints
-
TEvent | : | IEvent | |
TEvent | : | new() | |
TFactory | : | IEventFactory<TRegData> | |
◆ SubscribeAll< TEvent, TFactory >()
void Anvil.Services.EventService.SubscribeAll< TEvent, TFactory > |
( |
Action< TEvent > | handler, |
|
|
EventCallbackType | eventCallbackType = EventCallbackType::Before ) |
|
inline |
- Type Constraints
-
TEvent | : | IEvent | |
TEvent | : | new() | |
TFactory | : | IEventFactory<NullRegistrationData> | |
◆ SubscribeAll< TEvent, TFactory, TRegData >()
void Anvil.Services.EventService.SubscribeAll< TEvent, TFactory, TRegData > |
( |
TRegData | registrationData, |
|
|
Action< TEvent > | handler, |
|
|
EventCallbackType | eventCallbackType = EventCallbackType::Before ) |
|
inline |
- Type Constraints
-
TEvent | : | IEvent | |
TEvent | : | new() | |
TFactory | : | IEventFactory<TRegData> | |
◆ Unsubscribe< TEvent, TFactory >()
void Anvil.Services.EventService.Unsubscribe< TEvent, TFactory > |
( |
NwObject? | nwObject, |
|
|
Action< TEvent > | handler, |
|
|
EventCallbackType | eventCallbackType = EventCallbackType::Before ) |
|
inline |
- Type Constraints
-
TEvent | : | IEvent | |
TEvent | : | new() | |
TFactory | : | IEventFactory | |
◆ UnsubscribeAll< TEvent, TFactory >()
void Anvil.Services.EventService.UnsubscribeAll< TEvent, TFactory > |
( |
Action< TEvent > | handler, |
|
|
EventCallbackType | eventCallbackType = EventCallbackType::Before ) |
|
inline |
- Type Constraints
-
TEvent | : | IEvent | |
TEvent | : | new() | |
TFactory | : | IEventFactory | |
The documentation for this class was generated from the following files:
- NWN.Anvil/src/main/Services/Events/EventService.cs
- NWN.Anvil/src/main/Services/Events/EventService.EventHandler.cs