Function minutiae::util::locate_entity [] [src]

pub fn locate_entity<C: CellState, E: EntityState<C>, M: MutEntityState>(
    entities: &[Vec<Entity<C, E, M>>],
    uuid: Uuid,
    expected_index: usize,
    entity_meta: &HashMap<Uuid, (usize, usize)>,
    universe_size: usize
) -> EntityLocation

Attempts to find the entity index of an entity with a specific UUID and a set of coordinates where it is expected to be located.