ecs_clone

Function ecs_clone 

Source
pub unsafe extern "C" fn ecs_clone(
    world: *mut ecs_world_t,
    dst: ecs_entity_t,
    src: ecs_entity_t,
    copy_value: bool,
) -> ecs_entity_t
Expand description

Clone an entity This operation clones the components of one entity into another entity. If no destination entity is provided, a new entity will be created. Component values are not copied unless copy_value is true.

@param world The world. @param dst The entity to copy the components to. @param src The entity to copy the components from. @param copy_value If true, the value of components will be copied to dst. @return The destination entity.