bevy/crates/bevy_ecs/src
James Liu d79888bdae Document and lock down types in bevy_ecs::archetype (#6742)
# Objective
Document `bevy_ecs::archetype` and and declutter the public documentation for the module by making types non-`pub`.

Addresses #3362 for `bevy_ecs::archetype`.

## Solution
 - Add module level documentation.
 - Add type and API level documentation for all public facing types.
 - Make `ArchetypeId`, `ArchetypeGeneration`, and `ArchetypeComponentId` truly opaque IDs that are not publicly constructable. 
 - Make `AddBundle` non-pub, make `Edges::get_add_bundle` return a `Option<ArchetypeId>` and fork the existing function into `Edges::get_add_bundle_internal`.
 - Remove `pub(crate)` on fields that have a corresponding pub accessor function.
 - Removed the `Archetypes: Default` impl, opting for a `pub(crate) fn new` alternative instead.

---

## Changelog
Added: `ArchetypeGeneration` now implements `Ord` and `PartialOrd`.
Removed: `Archetypes`'s `Default` implementation.
Removed: `Archetype::new` and `Archetype::is_empty`.
Removed: `ArchetypeId::new` and `ArchetypeId::value`.
Removed: `ArchetypeGeneration::value`
Removed: `ArchetypeIdentity`.
Removed: `ArchetypeComponentId::new` and `ArchetypeComponentId::value`.
Removed: `AddBundle`. `Edges::get_add_bundle` now returns `Option<ArchetypeId>`
2022-11-28 13:54:12 +00:00
..
entity Fix documentation on spawining an entity (#6775) 2022-11-28 13:40:31 +00:00
query Document and lock down types in bevy_ecs::archetype (#6742) 2022-11-28 13:54:12 +00:00
schedule Fix clippy::iter_with_drain (#6485) 2022-11-06 01:42:15 +00:00
storage Rename EntityId to EntityIndex (#6732) 2022-11-22 20:38:35 +00:00
system Fix PipeSystem panicking with exclusive systems (#6698) 2022-11-21 14:23:21 +00:00
world Document and lock down types in bevy_ecs::archetype (#6742) 2022-11-28 13:54:12 +00:00
archetype.rs Document and lock down types in bevy_ecs::archetype (#6742) 2022-11-28 13:54:12 +00:00
bundle.rs Document and lock down types in bevy_ecs::archetype (#6742) 2022-11-28 13:54:12 +00:00
change_detection.rs Split Component Ticks (#6547) 2022-11-21 12:59:09 +00:00
component.rs Split Component Ticks (#6547) 2022-11-21 12:59:09 +00:00
event.rs Remove warning about missed events due to false positives (#6730) 2022-11-23 00:27:29 +00:00
lib.rs Fix get_unchecked_manual using archetype index instead of table row. (#6625) 2022-11-15 00:19:11 +00:00
reflect.rs Enable Constructing ReflectComponent/Resource (#6257) 2022-10-17 14:01:50 +00:00