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

            if (Uid != 0L)
            {
                hash ^= Uid.GetHashCode();
            }
            if (PlayerID != 0)
            {
                hash ^= PlayerID.GetHashCode();
            }
            if (PlayerName.Length != 0)
            {
                hash ^= PlayerName.GetHashCode();
            }
            if (Score != 0)
            {
                hash ^= Score.GetHashCode();
            }
            if (IsAI != false)
            {
                hash ^= IsAI.GetHashCode();
            }
            if (IsOut != false)
            {
                hash ^= IsOut.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 23 + JamID.GetHashCode();
            hash = hash * 23 + PenaltyCode.GetHashCode();
            hash = hash * 23 + PenaltyNumber.GetHashCode();
            hash = hash * 23 + PlayerID.GetHashCode();
            return(hash);
        }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlayerID != 0)
            {
                hash ^= PlayerID.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlayerID != 0)
            {
                hash ^= PlayerID.GetHashCode();
            }
            if (HandCardID != 0)
            {
                hash ^= HandCardID.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlayerID != 0)
            {
                hash ^= PlayerID.GetHashCode();
            }
            if (Bet_ != 0)
            {
                hash ^= Bet_.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlayerID != 0)
            {
                hash ^= PlayerID.GetHashCode();
            }
            if (talkMsg_ != null)
            {
                hash ^= TalkMsg.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Camp != 0)
            {
                hash ^= Camp.GetHashCode();
            }
            if (PlayerID != 0)
            {
                hash ^= PlayerID.GetHashCode();
            }
            hash ^= cardItems_.GetHashCode();
            return(hash);
        }
Exemplo n.º 8
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);
        }
Exemplo n.º 9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlayerID != 0)
            {
                hash ^= PlayerID.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }