Esempio n. 1
0
        public static bool ContainsAny(this IGroup group, IEntity entity)
        {
            var requiredContains = group.ContainsAnyRequiredComponents(entity);

            if (requiredContains)
            {
                return(true);
            }

            return(group.ContainsAnyExcludedComponents(entity));
        }
Esempio n. 2
0
        public static bool ContainsAny(this IGroup group, params IComponent[] components)
        {
            var requiredContains = group.ContainsAnyRequiredComponents(components);

            if (requiredContains)
            {
                return(true);
            }

            return(group.ContainsAnyExcludedComponents(components));
        }