forked from bevyengine/bevy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a method for accessing the width of a
Table
(bevyengine#6249)
# Objective There is currently no good way of getting the width (# of components) of a table outside of `bevy_ecs`. # Solution Added the methods `Table::{component_count, component_capacity}` For consistency and clarity, renamed `Table::{len, capacity}` to `entity_count` and `entity_capacity`. ## Changelog - Added the methods `Table::component_count` and `Table::component_capacity` - Renamed `Table::len` and `Table::capacity` to `entity_count` and `entity_capacity` ## Migration Guide Any use of `Table::len` should now be `Table::entity_count`. Any use of `Table::capacity` should now be `Table::entity_capacity`.
- Loading branch information
Showing
3 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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