The type ID of the event this subscription is for.
The type of the event data for the event this subscription is for.
Creates a new event subscription.
The data for the event subscription.
Optional
isSaved: boolean = falseWhether or not the event subscription has already been saved.
Private
#eventThe type ID of the event this subscription is for.
Private
#eventA reference to the array of loaded event subscriptions for the event this subscription is for.
Private
#eventA reference to the event signal for the event this subscription is for.
Private
#initializedWhether or not the event subscription has been initialized.
Private
#initializedThe initialized callback function for the event subscription.
The data for the event subscription.
Whether or not the event subscription has been saved.
The type ID of the event this subscription is for.
A reference to the array of loaded event subscriptions for the event this subscription is for.
A reference to the event signal for the event this subscription is for.
Whether or not the event subscription is valid.
True if the event is loaded, false otherwise.
Deinitializes the event subscription.
This method unsubscribes the subscription from the actual event.
A boolean representing whether or not the subscription was successfully deinitialized, currently it always returns true, as when it is not successful, an error is thrown.
Deletes the event subscription.
This function can't be called in read-only mode.
This function can be called in early-execution mode.
If the event subscription is initialized, it will be deinitialized.
If the event subscription is loaded, it will be removed from the loaded event subscriptions list.
If the event subscription is loaded and is saved, it will be removed from the loaded event subscriptions list, then the list of loaded event subscriptions will be saved, causing the event subscription to be deleted.
If the event subscription is not loaded but is saved, the list of loaded event subscriptions will be saved, causing the event subscription to be deleted.
Disables the event subscription.
A boolean representing whether or not the subscription was successfully disabled, if the event is already disabled, false is returned, otherwise true.
Enables the event subscription.
A boolean representing whether or not the subscription was successfully enabled, if the event is already enabled, false is returned, otherwise true.
Initializes the event subscription.
This method subscribes the subscription to the actual event.
A boolean representing whether or not the subscription was successfully initialized, currently it always returns true, as when it is not successful, an error is thrown.
Returns the data for the event subscription.
An event subscription.