effects.templates module¶
Base templates for effect classes.
- class effects.templates.TempEntityTemplate(temp_entity)[source]¶
Bases:
BaseTempEntity
A temp entity template.
- __init__(temp_entity)[source]¶
Initialize the instance.
- Parameters:
temp_entity (BaseTempEntity) – The base entity instance to copy the base from.
- add_hook(callback)[source]¶
Register a hook for this temp entity.
- Parameters:
callback (function) – The callback function to register.
- handle_hook(temp_entity, recipient_filter)[source]¶
Call the registered callbacks.
- Parameters:
temp_entity (TempEntity) – The TempEntity instance.
recipient_filter (RecipientFilter) – The RecipientFilter instance.
- Return type:
- remove_hook(callback)[source]¶
Unregister a hook for this temp entity.
- Parameters:
callback (function) – The callback function to unregister.
- property aliases¶
Return the aliases of the temp entity.
- Return type: