namespace Zinnia.Rule { using UnityEngine; using Zinnia.Data.Type; /// /// Determines whether a given is within the range of the specified . /// public class IntInRangeRule : IntRule { [Tooltip("The range in which the given int must be equal to the bounds or within the range.")] [SerializeField] private IntRange range; /// /// The range in which the given must be equal to the bounds or within the range. /// public IntRange Range { get { return range; } set { range = value; } } /// protected override bool Accepts(int targetInt) { return Range.Contains(targetInt); } } }