示例#1
0
文件: Tile.cs 项目: Chapmania/Juniper
        public override int GetHashCode()
        {
            var hashCode = -1601273053;

            hashCode = hashCode * -1521134295 + Fore.GetHashCode();
            hashCode = hashCode * -1521134295 + Back.GetHashCode();
            hashCode = hashCode * -1521134295 + Token.GetHashCode();
            return(hashCode);
        }
示例#2
0
 public bool EitherForeIs(Tile tile, params Types[] types)
 {
     return(Fore.Matches(types) && tile.Fore.Matches(types));
 }