[Merged by Bors] - merge matches_archetype and matches_table#4807
Closed
BoxyUwU wants to merge 3 commits intobevyengine:mainfrom
Closed
[Merged by Bors] - merge matches_archetype and matches_table#4807BoxyUwU wants to merge 3 commits intobevyengine:mainfrom
matches_archetype and matches_table#4807BoxyUwU wants to merge 3 commits intobevyengine:mainfrom
Conversation
james7132
approved these changes
May 20, 2022
alice-i-cecile
approved these changes
May 20, 2022
Member
|
PR description could provide a bit more context on what exactly these types are, but I'm happy with the changes themselves. |
james7132
requested changes
May 20, 2022
james7132
approved these changes
May 20, 2022
Closed
bors bot
pushed a commit
that referenced
this pull request
May 30, 2022
# Objective the code in these fns are always identical so stop having two functions ## Solution make them the same function --- ## Changelog change `matches_archetype` and `matches_table` to `fn matches_component_set(&self, &SparseArray<ComponentId, usize>) -> bool` then do extremely boring updating of all `FetchState` impls ## Migration Guide - move logic of `matches_archetype` and `matches_table` into `matches_component_set` in any manual `FetchState` impls
Contributor
matches_archetype and matches_tablematches_archetype and matches_table
james7132
pushed a commit
to james7132/bevy
that referenced
this pull request
Jun 7, 2022
# Objective the code in these fns are always identical so stop having two functions ## Solution make them the same function --- ## Changelog change `matches_archetype` and `matches_table` to `fn matches_component_set(&self, &SparseArray<ComponentId, usize>) -> bool` then do extremely boring updating of all `FetchState` impls ## Migration Guide - move logic of `matches_archetype` and `matches_table` into `matches_component_set` in any manual `FetchState` impls
Member
|
Came across this change while reviewing #4626: im not sold on this for a number of reasons:
|
Member
|
alice-i-cecile
pushed a commit
to alice-i-cecile/bevy
that referenced
this pull request
Jun 13, 2022
This reverts commit e528b63.
Member
|
@BoxyUwU, you mentioned you had rebuttals to these concerns but never remembered to actually write them down :) |
ItsDoot
pushed a commit
to ItsDoot/bevy
that referenced
this pull request
Feb 1, 2023
# Objective the code in these fns are always identical so stop having two functions ## Solution make them the same function --- ## Changelog change `matches_archetype` and `matches_table` to `fn matches_component_set(&self, &SparseArray<ComponentId, usize>) -> bool` then do extremely boring updating of all `FetchState` impls ## Migration Guide - move logic of `matches_archetype` and `matches_table` into `matches_component_set` in any manual `FetchState` impls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
the code in these fns are always identical so stop having two functions
Solution
make them the same function
Changelog
change
matches_archetypeandmatches_tabletofn matches_component_set(&self, &SparseArray<ComponentId, usize>) -> boolthen do extremely boring updating of allFetchStateimplsMigration Guide
matches_archetypeandmatches_tableintomatches_component_setin any manualFetchStateimpls