Events should do more than just execute a function associated with them. Events also should inform relevant parts of the game engine of what just occurred.
The event system should simply post events out for the rest of the engine to pick up.
Example: The Render2dSystem would subscribe to ComponentAdded and ComponentRemoved events for SpriteComponents and TextComponents to know how to manage the actual creation and deletion of these Components.
Events should do more than just execute a function associated with them. Events also should inform relevant parts of the game engine of what just occurred.
The event system should simply post events out for the rest of the engine to pick up.
Example: The Render2dSystem would subscribe to ComponentAdded and ComponentRemoved events for SpriteComponents and TextComponents to know how to manage the actual creation and deletion of these Components.