Exemplo n.º 1
0
 public static bool HasAnyFlag(this PetFoodMask flags, PetFoodType foodType)
 {
     return((flags & (PetFoodMask)(1 << (int)(foodType - 1 & (PetFoodType)31))) != (PetFoodMask)0);
 }
Exemplo n.º 2
0
Arquivo: NPC.Pet.cs Projeto: NVN/WCell
		public bool CanEat(PetFoodType petFoodType)
		{
			return m_entry.Family != null && m_entry.Family.PetFoodMask.HasAnyFlag(petFoodType);
		}
Exemplo n.º 3
0
		public static bool HasAnyFlag(this PetFoodMask flags, PetFoodType foodType)
		{
			return (flags & (PetFoodMask)(1 << ((int)foodType-1))) != 0;
		}
Exemplo n.º 4
0
 public bool CanEat(PetFoodType petFoodType)
 {
     return(m_entry.Family != null && m_entry.Family.PetFoodMask.HasAnyFlag(petFoodType));
 }
Exemplo n.º 5
0
		public static bool Has(this PetFoodMask mask, PetFoodType foodType)
		{
			return (mask & (PetFoodMask)(1 << ((int)foodType - 1))) != 0u;
		}
Exemplo n.º 6
0
		public bool CanEat(PetFoodType petFoodType)
		{
			return m_entry.Family.PetFoodMask.Has(petFoodType);
		}