bevy/examples/ecs
James Liu 8eb0440f1e Hierarchy commandization (#4197)
## Objective
Implement absolute minimum viable product for the changes proposed in bevyengine/rfcs#53.

## Solution

 - Remove public mutative access to `Parent` (Children is already publicly read-only). This includes public construction methods like `Copy`, `Clone`, and `Default`.
 - Remove `PreviousParent`
 - Remove `parent_update_system`
 - Update all hierarchy related commands to immediately update both `Parent` and `Children` references.

## Remaining TODOs

 - [ ] Update documentation for both `Parent` and `Children`. Discourage using `EntityCommands::remove`
 - [x] Add `HierarchyEvent` to notify listeners of hierarchy updates. This is meant to replace listening on `PreviousParent`

## Followup

 - These changes should be best moved to the hooks mentioned in #3742.
 - Backing storage for both might be best moved to indexes mentioned in the same relations.
2022-07-10 20:29:06 +00:00
..
component_change_detection.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
custom_query_param.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
ecs_guide.rs Fix player number in example game in the ecs_guide (#5098) 2022-06-26 13:58:56 +00:00
event.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
fixed_timestep.rs Split time functionality into bevy_time (#4187) 2022-05-26 00:27:18 +00:00
generic_system.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
hierarchy.rs Hierarchy commandization (#4197) 2022-07-10 20:29:06 +00:00
iter_combinations.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
parallel_query.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
removal_detection.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
startup_system.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
state.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
system_chaining.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
system_closure.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
system_param.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
system_sets.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
timers.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00