bevy/crates/bevy_ecs/src
Jean Mertz b58eda01e2
feat(ecs): add EntityEntryCommands::entity() method chaining (#17580)
This allows you to continue chaining method calls after calling
`EntityCommands::entry`:

```rust
commands
    .entity(player.entity)
    .entry::<Level>()
    // Modify the component if it exists
    .and_modify(|mut lvl| lvl.0 += 1)
    // Otherwise insert a default value
    .or_insert(Level(0))
    // Return the EntityCommands for the entity
    .entity()
    // And continue chaining method calls
    .insert(Name::new("Player"));
```

---------

Signed-off-by: Jean Mertz <git@jeanmertz.com>
2025-01-29 17:36:02 +00:00
..
entity implement UniqueEntityVec (#17549) 2025-01-28 06:00:59 +00:00
event Move Resource trait to its own file (#17469) 2025-01-21 19:47:08 +00:00
identifier bevy_ecs: Apply #![warn(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17335) 2025-01-14 21:37:41 +00:00
observer Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
query Share implementation of sort methods. (#16203) 2025-01-28 04:57:54 +00:00
reflect Move Resource trait to its own file (#17469) 2025-01-21 19:47:08 +00:00
relationship Refactored ComponentHook Parameters into HookContext (#17503) 2025-01-23 02:45:24 +00:00
schedule Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
storage Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
system feat(ecs): add EntityEntryCommands::entity() method chaining (#17580) 2025-01-29 17:36:02 +00:00
world Fix docs mistake in bevy_ecs::world (#17336) 2025-01-28 05:20:31 +00:00
archetype.rs Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
batching.rs Fix *most* clippy lints (#15906) 2024-10-14 20:52:35 +00:00
bundle.rs Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
change_detection.rs fix double comment characters (#17484) 2025-01-21 23:24:05 +00:00
component.rs Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
entity_disabling.rs Add DefaultQueryFilters (#13120) 2025-01-20 21:57:39 +00:00
hierarchy.rs Refactored ComponentHook Parameters into HookContext (#17503) 2025-01-23 02:45:24 +00:00
intern.rs Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
label.rs Add compile-time dyn compatible checks for DynEq, DynHash (#17254) 2025-01-09 07:30:54 +00:00
lib.rs Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
name.rs Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
removal_detection.rs Replace map + unwrap_or(true) with is_none_or (#17070) 2024-12-31 20:17:03 +00:00
resource.rs Move Resource trait to its own file (#17469) 2025-01-21 19:47:08 +00:00
result.rs Add no_std support to bevy_ecs (#16758) 2024-12-17 21:40:36 +00:00
traversal.rs Relationships (non-fragmenting, one-to-many) (#17398) 2025-01-18 22:20:30 +00:00