コード例 #1
0
ファイル: NPC.cs プロジェクト: WCellFR/WCellFR
		/// <summary>
		/// Checks whether this NPC is of the given type
		/// </summary>
		public bool CheckCreatureType(TargetCreatureMask mask)
		{
			var type = Entry.Type;
		    return mask.HasFlag((TargetCreatureMask) (1 << ((int) type - 1)));
		}
コード例 #2
0
ファイル: NPC.cs プロジェクト: pallmall/WCell
		/// <summary>
		/// Checks whether this NPC is of the given type
		/// </summary>
		public bool CheckCreatureType(TargetCreatureMask mask)
		{
			var type = Entry.Type;
			return (mask & (TargetCreatureMask)(1 << ((int)type - 1))) != 0;
		}