isInterested() public method

public isInterested ( BitSet componentBits ) : bool
componentBits BitSet
return bool
        public virtual void onChange(Entity entity)
        {
            var contains = _entities.Contains(entity);
            var interest = _matcher.isInterested(entity);

            if (interest && !contains)
            {
                add(entity);
            }
            else if (!interest && contains)
            {
                remove(entity);
            }
        }