TavernEvents.TavernEvent<T>
A class in TavernLib, TavernLib.Utils.
An event mods can subscribe to but only TavernLib can raise. Used for TavernEvents.SocketCreated and Roles.RolesChanged.
- Listed in TavernLib.Utils
- Nested in
TavernEvents
Constructors
| Member | What it is |
|---|---|
TavernEvent() | Created by TavernLib; mods don't make one. |
Events
1 private and internal event
Methods
| Member | What it is |
|---|---|
void Subscribe(Action<T> handler) | Adds a handler. |
void Unsubscribe(Action<T> handler) | Removes a handler. Pass the same delegate you subscribed, not a new lambda. |
1 private and internal method
Used in
Members of other types that take, return or hold a TavernEvent<T>: