Inconsistent API between observers and commands for entity-targetting #14272
Labels
A-ECS
Entities, components, systems, and events
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
D-Trivial
Nice and easy! A great choice to get started with Bevy
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
X-Uncontroversial
This work is generally agreed upon
Global command vs event:
Entity-local command vs event:
Or with a more ergonomic API (#14233):
The difference remains that commands statically distinguish
Command
andEntityCommand
, while events only haveEvent
, with observers having to determine at runtime whether theirTrigger
includes an entity (currently that entails checkingtrigger.entity() == Entity::PLACEHOLDER
, see #14236).The text was updated successfully, but these errors were encountered: