Exemplo n.º 1
0
        public bool Matches(GameObject gameObject)
        {
            // TODO: should never be null, must be taken from DefaultThings
            if (gameObject.Definition.KindOf == null)
            {
                return(false);
            }

            if (Exclude.Intersects(gameObject.Definition.KindOf))
            {
                return(false);
            }

            return(Include.Intersects(gameObject.Definition.KindOf));
        }