ecs_get_mut_modified_id

Function ecs_get_mut_modified_id 

Source
pub unsafe extern "C" fn ecs_get_mut_modified_id(
    world: *mut ecs_world_t,
    entity: ecs_entity_t,
    id: ecs_id_t,
) -> *mut c_void
Expand description

Combines get_mut + modifed in single operation. This operation is a more efficient alternative to calling ecs_get_mut_id and ecs_modified_id separately. This operation is only valid when the world is in deferred mode, which ensures that the Modified event is not emitted before the modification takes place.

@param world The world. @param entity The entity. @param id The id of the component to obtain. @return The component pointer.