-
-
Notifications
You must be signed in to change notification settings - Fork 133
Advanced pattern: entities-as-events #15
Copy link
Copy link
Open
Labels
C-enhancementNew content that isn't covered alreadyNew content that isn't covered alreadyS-programmingCore bevy APIs / programming patternsCore bevy APIs / programming patternsZ-largelarge task that needs a significant time investmentlarge task that needs a significant time investment
Metadata
Metadata
Assignees
Labels
C-enhancementNew content that isn't covered alreadyNew content that isn't covered alreadyS-programmingCore bevy APIs / programming patternsCore bevy APIs / programming patternsZ-largelarge task that needs a significant time investmentlarge task that needs a significant time investment
I'm currently using this for extremely complex combat events in Fonts of Power.
The core idea here is that rather than emitting an event, you spawn an entity with a marker component, and then look for that in your "event-handling" systems. This has a few nice advantages:
It also has a few critical disadvantages: