Exemple #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);
        }
Exemple #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);
        }
Exemple #3
0
 public override int GetHashCode()
 {
     return(EntityId.GetHashCode() + (GridId.GetHashCode() << 8) + ((Position.HasValue ? Position.Value.GetHashCode() : 0) << 16) + ((Box.HasValue ? Box.Value.GetHashCode() : 0) << 24));
 }
 public override int GetHashCode()
 {
     return(GridIndex.GetHashCode() ^ GridIndices.GetHashCode() ^ Data.GetHashCode());
 }