Closed
Description
Originally posted by @cart in #16029
I don't think
Option<Entity>
is the right approach here. Events (or whatever we choose to call them) should be designed with a specific target type in mind (no target, entity target, component target, etc).Right after we landed observers I implemented "static event targets", which removes the need for
Option
/PLACEHOLDER
, makes it statically impossible for users to try to access a non-existent entity for a "global event", and general prevents expressing the "wrong" thing.
Metadata
Metadata
Assignees
Labels
Entities, components, systems, and eventsA new feature, making something new possibleA targeted quality-of-life change that makes Bevy easier to useA "normal" level of difficulty; suitable for simple features or challenging fixesHas a large architectural impact or tradeoffs, but the design has been endorsed by decision makers
Type
Projects
Status
Observers - Completed