mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
add comments about future entity archetype plans
This commit is contained in:
parent
e0753c8ace
commit
48cf0190ad
1 changed files with 5 additions and 0 deletions
|
@ -5,8 +5,13 @@ use legion::prelude::*;
|
|||
// builder macro that makes defaults easy? Object3dBuilder { Option<Material> } impl Builder for Object3dBuilder { }
|
||||
pub trait EntityArchetype {
|
||||
fn insert(self, world: &mut World) -> Entity;
|
||||
|
||||
// this would make composing entities from multiple archetypes possible
|
||||
// add_components appears to be missing from World. it will be less efficient without that
|
||||
// fn add_components(self, world: &mut World);
|
||||
|
||||
// generate by macro. maybe a separate macro?
|
||||
// fn query() -> Query
|
||||
}
|
||||
|
||||
pub struct Object3dEntity {
|
||||
|
|
Loading…
Reference in a new issue