mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Documenting SIGNALS_CUSTOM.
This commit is contained in:
parent
ad6d9a98ff
commit
17bd0719f9
1 changed files with 5 additions and 0 deletions
|
|
@ -93,6 +93,11 @@ SIGNAL_CHANNEL_POST_CREATE = Signal()
|
|||
SIGNAL_EXIT_TRAVERSED = Signal()
|
||||
|
||||
# Used as a generic event emitter. Use to make your own signals easily in one place!
|
||||
# To use it, import SIGNALS_CUSTOM and use it like a dictionary of Signal objects.
|
||||
# Example:
|
||||
# from evennia.utils.signals import SIGNALS_CUSTOM
|
||||
# SIGNALS_CUSTOM['my_signal'].connect(my_callback)
|
||||
# SIGNALS_CUSTOM['my_signal'].send(sender, **kwargs)
|
||||
SIGNALS_CUSTOM: dict[str, Signal] = defaultdict(Signal)
|
||||
|
||||
# Django default signals (https://docs.djangoproject.com/en/4.1/topics/signals/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue