public GroupsIterator(EntitiesDB db) : this()
 {
     _db = db.FindGroups_INTERNAL(TypeCache <T1> .type).GetEnumerator();
 }
示例#2
0
        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;
 }
示例#4
0
        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));
 }
示例#6
0
 public GroupsEnumerable(EntitiesDB db, in LocalFasterReadOnlyList <ExclusiveGroupStruct> groups)
示例#7
0
 public static AllGroupsEnumerable <T1> QueryEntities <T1>(this EntitiesDB db)
     where T1 : struct, IEntityComponent
 {
     return(new AllGroupsEnumerable <T1>(db));
 }
示例#8
0
        public EGID ToEGID(EntitiesDB entitiesDB)
        {
            DBC.ECS.Check.Require(this != Invalid, "Invalid Reference Used");

            return(entitiesDB.GetEGID(this));
        }
示例#9
0
        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();
 }
示例#12
0
 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;
 }