public override int GetHashCode()
        {
            int hash = 1;

            if (FortressId.Length != 0)
            {
                hash ^= FortressId.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude);
            }
            if (Longitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude);
            }
            if (TeamId.Length != 0)
            {
                hash ^= TeamId.GetHashCode();
            }
            if (FlooPoints != 0L)
            {
                hash ^= FlooPoints.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Action != global::Reworld.Teamwork.PingAction.Heartbeat)
            {
                hash ^= Action.GetHashCode();
            }
            if (TeamId != 0L)
            {
                hash ^= TeamId.GetHashCode();
            }
            if (UUID.Length != 0)
            {
                hash ^= UUID.GetHashCode();
            }
            if (Timestamp != 0L)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (Sign.Length != 0)
            {
                hash ^= Sign.GetHashCode();
            }
            hash ^= receiver_.GetHashCode();
            if (Data.Length != 0)
            {
                hash ^= Data.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = MattermostUrl != null?MattermostUrl.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (TeamId != null ? TeamId.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Username != null ? Username.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (ChannelsMap != null ? ChannelsMap.GetHashCode() : 0);
                return(hashCode);
            }
        }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 23;
         hash = hash * 37 + TeamId.GetHashCode();
         hash = hash * 37 + (Name != null ? Name.GetHashCode() : 0);
         hash = hash * 37 + (LeagueId != null ? LeagueId.GetHashCode() : 0);
         hash = hash * 37 + SeasonId.GetHashCode();
         hash = hash * 37 + (Score != null ? Score.GetHashCode() : 0);
         return(hash);
     }
 }
Exemplo n.º 5
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (TeamId != 0L)
        {
            hash ^= TeamId.GetHashCode();
        }
        if (UUID.Length != 0)
        {
            hash ^= UUID.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Exemplo n.º 6
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (TeamId.Length != 0)
        {
            hash ^= TeamId.GetHashCode();
        }
        if (LeaderId.Length != 0)
        {
            hash ^= LeaderId.GetHashCode();
        }
        hash ^= members_.GetHashCode();
        if (Status != 0)
        {
            hash ^= Status.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Exemplo n.º 7
0
 public override int GetHashCode()
 {
     return(TeamId.GetHashCode());
 }
Exemplo n.º 8
0
 /// <summary>
 /// Gets category hashcode.
 /// </summary>
 /// <returns>HashCode</returns>
 public override int GetHashCode() => (TeamId.GetHashCode() + Id.GetHashCode() + 2500) / 2;
Exemplo n.º 9
0
 protected override int GetHashCodeCore() => TeamId.GetHashCode();
Exemplo n.º 10
0
                public override int GetHashCode()
                {
                    int num = 1;

                    if (EntityId != 0)
                    {
                        num ^= EntityId.GetHashCode();
                    }
                    if (EntityType != 0)
                    {
                        num ^= EntityType.GetHashCode();
                    }
                    if (name_ != null)
                    {
                        num ^= Name.GetHashCode();
                    }
                    if (defId_.HasValue)
                    {
                        num ^= DefId.GetHashCode();
                    }
                    if (weaponId_.HasValue)
                    {
                        num ^= WeaponId.GetHashCode();
                    }
                    if (genderId_.HasValue)
                    {
                        num ^= GenderId.GetHashCode();
                    }
                    if (playerIndexInFight_.HasValue)
                    {
                        num ^= PlayerIndexInFight.GetHashCode();
                    }
                    if (ownerId_.HasValue)
                    {
                        num ^= OwnerId.GetHashCode();
                    }
                    if (teamId_.HasValue)
                    {
                        num ^= TeamId.GetHashCode();
                    }
                    if (level_.HasValue)
                    {
                        num ^= Level.GetHashCode();
                    }
                    num ^= ((object)properties_).GetHashCode();
                    if (position_ != null)
                    {
                        num ^= Position.GetHashCode();
                    }
                    if (direction_.HasValue)
                    {
                        num ^= Direction.GetHashCode();
                    }
                    num ^= ((object)Caracs).GetHashCode();
                    if (customSkin_ != null)
                    {
                        num ^= CustomSkin.GetHashCode();
                    }
                    if (actionDoneThisTurn_.HasValue)
                    {
                        num ^= ActionDoneThisTurn.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        num ^= ((object)_unknownFields).GetHashCode();
                    }
                    return(num);
                }