示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Chunk != null ? Chunk.GetHashCode() : 0) * 397) ^ GridPosition.GetHashCode());
     }
 }
示例#2
0
 /// <summary>
 /// Gets the hashcode
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(GridPosition.GetHashCode() ^ 63 * BlockType.GetHashCode() ^ 127);
 }