Build/Buy Event Handling¶
Build/Buy Event Dispatcher¶
- class CommonBuildBuyEventDispatcherService¶
Bases:
CommonService,HasClassLogA service that dispatches Build/Buy events.
Warning
Do not use this service directly to listen for events! Use the
CommonEventRegistryto listen for dispatched events.- classmethod get_log_identifier()¶
A string identifier for the log of the class.
Note
This is the text that will appear when logging messages.
- Returns:
The identifier for the log
- Return type:
str
- classmethod get_mod_identity()¶
Retrieve the identity of the mod that owns the class.
Warning
Override this function with the
CommonModIdentityof your mod.This is a MUST override to allow for proper Exception Handling and Logging!
- Returns:
An instance of CommonModIdentity
- Return type:
- Raises:
NotImplementedError – Thrown when the function is not implemented.