Called when a world object is being deleted. Currently emitted in the
process of destruction, i.e. you aren't guaranteed to be able to access
any attributes. (Feel free to change the implementation if you need
this).
|
|
|
discard(cls,
callback,
sender=None)
Similar to `Message.unsubscribe`, but does not raise an error if the
callback has not been registered before. |
source code
|
|
|
subscribe(cls,
callback,
sender=None)
Register a callback to be called whenever a message of this type is send. |
source code
|
|
|
unsubscribe(cls,
callback,
sender=None)
Stop your subscription of this message type for the specified callback. |
source code
|
|