Questions about design and components...
Posted: Tue Jul 19, 2005 20:10
Hello,
After taking a look at the CEGUI event system which by the way looks alot better than the old implementation I came up with a cuple of questions...
What is RefPtr used for ? Is it a "SmartPointer" class ?
Wouldnt it be more appropriate to call the class Event for EventSlot ? since its actually doesnt represent a single event type or definition but rather a collection of bound subscripers ?
How do I unsubscripe to an event in a event set without keeping track of alot of "Connection" instances which really should be the responsebility of the EventSet and the EventSlot it self.
- Kristian
After taking a look at the CEGUI event system which by the way looks alot better than the old implementation I came up with a cuple of questions...
What is RefPtr used for ? Is it a "SmartPointer" class ?
Wouldnt it be more appropriate to call the class Event for EventSlot ? since its actually doesnt represent a single event type or definition but rather a collection of bound subscripers ?
How do I unsubscripe to an event in a event set without keeping track of alot of "Connection" instances which really should be the responsebility of the EventSet and the EventSlot it self.
- Kristian