From 48cf0190ad250210d7d4ce4369d18c88b5280f03 Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Sat, 18 Jan 2020 15:38:57 -0800 Subject: [PATCH] add comments about future entity archetype plans --- src/ecs/archetypes.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ecs/archetypes.rs b/src/ecs/archetypes.rs index fe0700e870..f0ac386e1c 100644 --- a/src/ecs/archetypes.rs +++ b/src/ecs/archetypes.rs @@ -5,8 +5,13 @@ use legion::prelude::*; // builder macro that makes defaults easy? Object3dBuilder { Option } 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 {