Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
        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));
        }