public override int GetHashCode()
        {
            int hashPrevious = PreviousID == 0 ? 0 : PreviousID.GetHashCode();
            int hashID       = TeamID == 0 ? 0 : TeamID.GetHashCode();
            int hashTitle    = TeamTitle == null ? 0 : TeamTitle.GetHashCode();

            return(hashPrevious ^ hashID ^ hashTitle);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MessageType != global::Communication.Proto.MessageType.AddPlayer)
            {
                hash ^= MessageType.GetHashCode();
            }
            if (PlayerID != 0L)
            {
                hash ^= PlayerID.GetHashCode();
            }
            if (TeamID != 0L)
            {
                hash ^= TeamID.GetHashCode();
            }
            if (JobType != global::Communication.Proto.JobType.Job0)
            {
                hash ^= JobType.GetHashCode();
            }
            if (PropType != global::Communication.Proto.PropType.Null)
            {
                hash ^= PropType.GetHashCode();
            }
            if (TimeInMilliseconds != 0)
            {
                hash ^= TimeInMilliseconds.GetHashCode();
            }
            if (Angle != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Angle);
            }
            if (ToPlayerID != 0L)
            {
                hash ^= ToPlayerID.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #3
0
 public override int GetHashCode()
 {
     return(1866874249 + TeamID.GetHashCode());
 }
Beispiel #4
0
 public override int GetHashCode()
 {
     return(TeamID.GetHashCode() ^ UserID.GetHashCode());
 }