Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ComponentHook based Parent/Children Management #15635

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
4d76fd3
Use `ComponentHooks` for `Parent` & `Children`
bushrat011899 Oct 3, 2024
e460c27
Merge remote-tracking branch 'upstream/main' into HookBasedRelationships
bushrat011899 Oct 3, 2024
c81436a
Fix docs
bushrat011899 Oct 3, 2024
f6b83c6
Fix documentation
bushrat011899 Oct 4, 2024
0e1844d
Remove needless allocation
bushrat011899 Oct 4, 2024
85e1beb
Refactored event types to be more ergonomic
bushrat011899 Oct 5, 2024
ed19f97
Silly Typo
bushrat011899 Oct 5, 2024
b3acfe4
Clippy
bushrat011899 Oct 5, 2024
cc676f6
Fix documentation
bushrat011899 Oct 5, 2024
e2bc4b9
Generalised `depsawn_recursive`
bushrat011899 Oct 6, 2024
c3ffe42
Fix benchmark
bushrat011899 Oct 6, 2024
add4631
Add inadvertently removed sorting methods
bushrat011899 Oct 6, 2024
8ae6ab2
Merge remote-tracking branch 'upstream/main' into HookBasedRelationships
bushrat011899 Oct 7, 2024
3a8f35c
Rename `OneToManyOne` and `OneToManyMany`
bushrat011899 Oct 17, 2024
4493faa
Remove redundant `on_remove` hooks
bushrat011899 Oct 19, 2024
0aad673
Updated documentation on `Parent` and `Children`
bushrat011899 Oct 19, 2024
ec1543c
Refactored Relationships into a new trait
bushrat011899 Oct 19, 2024
4932a93
Simplified `DespawnRecursive` Builder Pattern
bushrat011899 Oct 19, 2024
4c4cde5
Add Warning to `swap` methods
bushrat011899 Oct 19, 2024
60a08ec
Replaced references to `a` and `b` entities with `primary` and `foreign`
bushrat011899 Oct 19, 2024
f4c0adb
Formatting
bushrat011899 Oct 19, 2024
0080d67
Fixed Documentation
bushrat011899 Oct 19, 2024
a11fcc2
Updated crate documentation to call out invariant footguns
bushrat011899 Oct 19, 2024
acde0c8
Update crates/bevy_hierarchy/src/many_to_many.rs
bushrat011899 Oct 20, 2024
10b620b
Update crates/bevy_hierarchy/src/one_to_many.rs
bushrat011899 Oct 20, 2024
fa430a3
Merge remote-tracking branch 'upstream/main' into HookBasedRelationships
bushrat011899 Oct 20, 2024
794d460
Removed Generic Relationships
bushrat011899 Oct 20, 2024
402b010
Fix CI
bushrat011899 Oct 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions benches/benches/bevy_ecs/world/despawn_recursive.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use bevy_ecs::prelude::*;
use bevy_hierarchy::despawn_with_children_recursive;
use bevy_hierarchy::BuildChildren;
use bevy_hierarchy::ChildBuild;
use bevy_hierarchy::{Children, DespawnRecursive, BuildChildren, ChildBuild};
use criterion::Criterion;
use glam::*;

Expand Down Expand Up @@ -29,7 +27,7 @@ pub fn world_despawn_recursive(criterion: &mut Criterion) {
group.bench_function(format!("{}_entities", entity_count), |bencher| {
bencher.iter(|| {
ents.iter().for_each(|e| {
despawn_with_children_recursive(&mut world, *e, true);
DespawnRecursive::<Children>::new(*e).apply(&mut world);
});
});
});
Expand Down
Loading