Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Index.GetHashCode() ^ TerrainId.GetHashCode() ^ Texture.GetHashCode() ^ SeenState.GetHashCode() ^ ControlledByFaction.GetHashCode());
 }