pub unsafe extern "C" fn ecs_set_entity_range(
world: *mut ecs_world_t,
id_start: ecs_entity_t,
id_end: ecs_entity_t,
)Expand description
Set a range for issueing new entity ids. This function constrains the entity identifiers returned by ecs_new to the specified range. This operation can be used to ensure that multiple processes can run in the same simulation without requiring a central service that coordinates issueing identifiers.
If id_end is set to 0, the range is infinite. If id_end is set to a non-zero value, it has to be larger than id_start. If id_end is set and ecs_new is invoked after an id is issued that is equal to id_end, the application will abort.
@param world The world. @param id_start The start of the range. @param id_end The end of the range.