コード例 #1
0
        public EntityGroup CreateComponentGroup(int[] componentIndices)
        {
            var entityGroup = new EntityGroup();

            for (int i = 0; i < parent.Count; i++)
            {
                var entity = parent[i];
                entityGroup.UpdateEntity(entity, IsComponentGroupValid(entity, componentIndices));
            }

            return(entityGroup);
        }
コード例 #2
0
        public EntityGroup CreateEntityGroup(EntityGroups groups)
        {
            var entityGroup = new EntityGroup();

            for (int i = 0; i < parent.Count; i++)
            {
                var entity = parent[i];
                entityGroup.UpdateEntity(entity, IsEntityGroupValid(entity, groups));
            }

            return(entityGroup);
        }