Hi guys, I am quite new to the whole reflection system and delegates, so
could anyone please explain to me the usage of events and delegates on the system I am planning to implement:
- An object of class (‘root’) has
several events and would store
several member objects of other
- Each member object also has events;
- The root’s events should be bound on
member objects’ events, so that
member events invoke root events.
The idea is that the big root object does not have collision bounds or visual representation, but it’s members have. So I want to receive member object events like overlap etc. in member objects and from there invoke parent events, passing to them all the needed data. How do I do that, and where do I need to use delegates in this system?