Skip to main content

add_component_to_entity

Function add_component_to_entity 

Source
pub fn add_component_to_entity(
    world: &mut GameWorld,
    entity: EntityId,
    type_name: &str,
)
Expand description

Adds a new component to an existing entity by dispatching through the inventory registry.