Anyone know of an event messaging system for Blitz3D?
I am looking for a system that can generate events and have game objects 'register' to listen only for certain event types. If no game object is currently registered for a given event type it is not sent out so no spamming of messages occurs.
For example a weapon listens for EVENT_fire or EVENT_altFire, but could care less about EVENT_mouseOver or EVENT_jumpLikeAMonkey.
If such a system is not already out there, got any slick ideas on how to proceed building one? Massive Select/Case statements are all that pop into my head right now but I haven't had my coffee yet...
Also, I have BVM and keep thinking this is the way to go to build such a system, but haven't really dug into it yet. So if you have an idea along those lines let me know.
Thanks,
I am looking for a system that can generate events and have game objects 'register' to listen only for certain event types. If no game object is currently registered for a given event type it is not sent out so no spamming of messages occurs.
For example a weapon listens for EVENT_fire or EVENT_altFire, but could care less about EVENT_mouseOver or EVENT_jumpLikeAMonkey.
If such a system is not already out there, got any slick ideas on how to proceed building one? Massive Select/Case statements are all that pop into my head right now but I haven't had my coffee yet...
Also, I have BVM and keep thinking this is the way to go to build such a system, but haven't really dug into it yet. So if you have an idea along those lines let me know.
Thanks,