mirror of
https://github.com/bevyengine/bevy
synced 2025-01-23 10:25:13 +00:00
1dc713b605
…able like Table. Rename clear to clear_entities to clarify that metadata keeps, only value cleared # Objective - Provide some inspectability for SparseSets. ## Solution - `Tables` has these three methods, len, is_empty and iter too. Add these methods to `SparseSets`, so user can print the shape of storage. --- ## Changelog > This section is optional. If this was a trivial fix, or has no externally-visible impact, you can delete this section. - Add `len`, `is_empty`, `iter` methods on SparseSets. - Rename `clear` to `clear_entities` to clarify its purpose. - Add `new_for_test` on `ComponentInfo` to make test code easy. - Add test case covering new methods. ## Migration Guide > This section is optional. If there are no breaking changes, you can delete this section. - Simply adding new functionality is not a breaking change. |
||
---|---|---|
.. | ||
blob_vec.rs | ||
mod.rs | ||
resource.rs | ||
sparse_set.rs | ||
table.rs |