Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MapName.Length != 0)
            {
                hash ^= MapName.GetHashCode();
            }
            if (GridId != 0)
            {
                hash ^= GridId.GetHashCode();
            }
            if (DataId != 0)
            {
                hash ^= DataId.GetHashCode();
            }
            if (Direction != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Direction);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MapName.Length != 0)
            {
                hash ^= MapName.GetHashCode();
            }
            if (GridId != 0)
            {
                hash ^= GridId.GetHashCode();
            }
            if (TerrainId != 0)
            {
                hash ^= TerrainId.GetHashCode();
            }
            if (BuildId != 0)
            {
                hash ^= BuildId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     return(MapName.GetHashCode() ^ GameModeName.GetHashCode());
 }
Exemplo n.º 4
0
 /// <inheritdoc/>
 public override int GetHashCode() => MapName.GetHashCode();