コード例 #1
0
        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));
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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));
        }