bevy/crates/bevy_core
Gilbert Röhrbein 4825051c6a
Test entity labels, fixed corner cases, changed interface (#1152)
* Test entity labels, fixed corner cases, changed interface

* add tests for entity_labels_system
* fixed filling label_entities map
* fixed corner cases when removing entities, Labels component
* changed EntityLabels::get to return slice or empty slice instead of
  None or Some empty or non-empty slice

Changing the interface of EntityLabels::get is beneficial, since else
you would get different results in case there was an entity before that
with this missing label or not. You would either get None or Some(&[])
and need to handle both, which is actually not necessary.

* register type Labels in CorePlugin
2020-12-27 18:28:49 -06:00
..
src Test entity labels, fixed corner cases, changed interface (#1152) 2020-12-27 18:28:49 -06:00
Cargo.toml release 0.4.0 (#1093) 2020-12-19 13:28:00 -06:00