bevy_exclusive_with
A Bevy plugin to define exclusive sets of components for ergonomic querying.
This can help you to define a set of components that should be mutually exclusive on entities,
and then query for them in the same system without getting conflicts.
Caveat: This does not actually enforce the exclusivity when inserting/mutating components, but
just helps you to query them without conflicts. A complete solution would require Archetype Invariants.
Usage
use *;
use *;
// Some components you want to query exclusively
;
;
;
// Define the set of exclusive components
;
exclusive_set!;
// Query for them in the same system
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE-2.0 or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.