pub trait AddEntity {
type Component;
fn add_entity(
storage: &mut Self,
entity: EntityId,
component: Self::Component
);
}
Expand description
Trait describing how to add a new entity to a storage.
Required Associated Types
Required Methods
fn add_entity(storage: &mut Self, entity: EntityId, component: Self::Component)
fn add_entity(storage: &mut Self, entity: EntityId, component: Self::Component)
Adds a new entity with component
.