Good Evening/Afternoon!
I seem to be having trouble understanding how to implement and use User defined:
- Delegates
- Event Handles
- Callbacks
- Broadcasting
I feel ive looked EVERYWHERE and found wht seemed to be wonderfull examples.. Alot of which i could of copy-pasted and went on but i wont learn anything from that...
Possible Case Uses:
- Fire even when specific variables pass a threshhold.
- object method called on event...
object.on_event(self, e)e could be event object such as:e.event_type,e.other_obj- so on ...
- fire on item add or removal
- fire on hostile within range
list can go on..
i know there is plenty of modules on PyPI but from what ive seem they seem EXTREAMLY simple to implement... for some reason im cannot grasp my head around this.
---
here is a couple sources i have read over:
fire if value
listeners Read The Docs
Event-driven programing
Event Systems in Python