public GroupsIterator(EntitiesDB db) : this() { _db = db.FindGroups_INTERNAL(TypeCache <T1> .type).GetEnumerator(); }
public static ref T QueryEntity <T>(this EntitiesDB entitiesDb, EGID entityGID) where T : struct, IEntityViewComponent { var array = entitiesDb.QueryEntitiesAndIndex <T>(entityGID, out var index); return(ref array[(int)index]);
public AllGroupsEnumerable(EntitiesDB db) { _db = db; }
public static ref T QueryEntity <T>(this EntitiesDB entitiesDb, EGID entityGID) where T : unmanaged, IEntityComponent { var array = QueryEntitiesAndIndex <T>(entitiesDb, entityGID, out var index); return(ref array[(int)index]);
public static bool TryGetEntity <T>(this EntitiesDB entitiesDb, EGID egid, out T value) where T : unmanaged, IEntityComponent { return(TryGetEntity <T>(entitiesDb, egid.entityID, egid.groupID, out value)); }
public GroupsEnumerable(EntitiesDB db, in LocalFasterReadOnlyList <ExclusiveGroupStruct> groups)
public static AllGroupsEnumerable <T1> QueryEntities <T1>(this EntitiesDB db) where T1 : struct, IEntityComponent { return(new AllGroupsEnumerable <T1>(db)); }
public EGID ToEGID(EntitiesDB entitiesDB) { DBC.ECS.Check.Require(this != Invalid, "Invalid Reference Used"); return(entitiesDB.GetEGID(this)); }
public bool ToEGID(EntitiesDB entitiesDB, out EGID egid) { DBC.ECS.Check.Require(this != Invalid, "Invalid Reference Used"); return(entitiesDB.TryGetEGID(this, out egid)); }
public NativeGroupsIterator(EntitiesDB db) : this() { _db = db.FindGroups<T1, T2>().GetEnumerator(); }
public GroupsIterator(EntitiesDB db) : this() { _db = db.FindGroups_INTERNAL<T1>().GetEnumerator(); }
public EntityReference ToEntityReference(EntitiesDB entitiesDB) { return(entitiesDB.GetEntityReference(this)); }
public NativeGroupsIterator(EntitiesDB db, FasterList <ExclusiveGroupStruct> groups) : this() { _groups = groups; _indexGroup = -1; _entitiesDB = db; }
public NativeGroupsEnumerable(EntitiesDB db, FasterList <ExclusiveGroupStruct> groups) { _db = db; _groups = groups; }