public static NB <T> QueryEntitiesAndIndex <T>(this EntitiesDB entitiesDb, EGID entityGID, out uint index) where T : unmanaged, IEntityComponent { if (entitiesDb.QueryEntitiesAndIndexInternal(entityGID, out index, out NB <T> array) == true) { return(array); } throw new EntityNotFoundException(entityGID, typeof(T)); }
public static bool TryQueryEntitiesAndIndex <T>(this EntitiesDB entitiesDb, uint id, ExclusiveGroupStruct group, out uint index, out NB <T> array) where T : unmanaged, IEntityComponent { if (entitiesDb.QueryEntitiesAndIndexInternal(new EGID(id, group), out index, out array) == true) { return(true); } return(false); }
public static bool TryQueryEntitiesAndIndex <T>(this EntitiesDB entitiesDb, EGID entityGID, out uint index, out NB <T> array) where T : unmanaged, IEntityComponent { if (entitiesDb.QueryEntitiesAndIndexInternal(entityGID, out index, out array) == true) { return(true); } return(false); }
public static bool TryQueryEntitiesAndIndex <T>(this EntitiesDB entitiesDb, EGID entityGID, out uint index, out MB <T> array) where T : struct, IEntityViewComponent { if (entitiesDb.QueryEntitiesAndIndexInternal <T>(entityGID, out index, out array) == true) { return(true); } return(false); }
public static NB <T> QueryEntitiesAndIndex <T>(this EntitiesDB entitiesDb, uint id, ExclusiveGroupStruct group, out uint index) where T : unmanaged, IEntityComponent { EGID entityGID = new EGID(id, group); if (entitiesDb.QueryEntitiesAndIndexInternal <T>(entityGID, out index, out NB <T> array) == true) { return(array); } throw new EntityNotFoundException(entityGID, typeof(T)); }