namespace FishNet.Utility.Performance { public static class RetrieveOptionExtensions { public static bool FastContains(this ObjectPoolRetrieveOption whole, ObjectPoolRetrieveOption part) => (whole & part) == part; } [System.Flags] public enum ObjectPoolRetrieveOption { Unset = 0, /// /// True to make the object active before returning. /// MakeActive = 1, /// /// True to treat supplied transform properties as local space. /// False will treat the properties as world space. /// LocalSpace = 2, } }