Exemple #1
0
 public bool Equals(BlockFace other)
 {
     return(Exists == other.Exists &&
            BlockId == other.BlockId &&
            TextureIndex == other.TextureIndex &&
            Tint == other.Tint &&
            LightTopLeft.Equals(other.LightTopLeft) &&
            LightTopRight.Equals(other.LightTopRight) &&
            LightBottomLeft.Equals(other.LightBottomLeft) &&
            LightBottomRight.Equals(other.LightBottomRight));
 }
Exemple #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Exists.GetHashCode();
         hashCode = (hashCode * 397) ^ BlockId;
         hashCode = (hashCode * 397) ^ TextureIndex;
         hashCode = (hashCode * 397) ^ Tint.GetHashCode();
         hashCode = (hashCode * 397) ^ LightTopLeft.GetHashCode();
         hashCode = (hashCode * 397) ^ LightTopRight.GetHashCode();
         hashCode = (hashCode * 397) ^ LightBottomLeft.GetHashCode();
         hashCode = (hashCode * 397) ^ LightBottomRight.GetHashCode();
         return(hashCode);
     }
 }