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