public static bool HasAnyFlag(this PetFoodMask flags, PetFoodType foodType) { return((flags & (PetFoodMask)(1 << (int)(foodType - 1 & (PetFoodType)31))) != (PetFoodMask)0); }
public bool CanEat(PetFoodType petFoodType) { return m_entry.Family != null && m_entry.Family.PetFoodMask.HasAnyFlag(petFoodType); }
public static bool HasAnyFlag(this PetFoodMask flags, PetFoodType foodType) { return (flags & (PetFoodMask)(1 << ((int)foodType-1))) != 0; }
public bool CanEat(PetFoodType petFoodType) { return(m_entry.Family != null && m_entry.Family.PetFoodMask.HasAnyFlag(petFoodType)); }
public static bool Has(this PetFoodMask mask, PetFoodType foodType) { return (mask & (PetFoodMask)(1 << ((int)foodType - 1))) != 0u; }
public bool CanEat(PetFoodType petFoodType) { return m_entry.Family.PetFoodMask.Has(petFoodType); }