Skip to content

Commit

Permalink
rework filtering in EntityCloneBuilder to use ComponentIds
Browse files Browse the repository at this point in the history
  • Loading branch information
eugineerd committed Nov 1, 2024
1 parent 7798b9d commit b4a69e1
Show file tree
Hide file tree
Showing 5 changed files with 177 additions and 153 deletions.
5 changes: 5 additions & 0 deletions crates/bevy_ecs/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,11 @@ impl ComponentCloneHandlers {
self.default_handler = handler;
}

/// Returns the currently registered default handler.
pub fn get_default_handler(&self) -> ComponentCloneFn {
self.default_handler
}

/// Sets a handler for a specific component.
pub fn set_component_handler(
&mut self,
Expand Down
Loading

0 comments on commit b4a69e1

Please sign in to comment.