Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlayerId.Length != 0)
            {
                hash ^= PlayerId.GetHashCode();
            }
            if (PlayerName.Length != 0)
            {
                hash ^= PlayerName.GetHashCode();
            }
            if (IsHouseOwner != false)
            {
                hash ^= IsHouseOwner.GetHashCode();
            }
            if (position_ != null)
            {
                hash ^= Position.GetHashCode();
            }
            if (rotation_ != null)
            {
                hash ^= Rotation.GetHashCode();
            }
            if (ExtraContent.Length != 0)
            {
                hash ^= ExtraContent.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        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);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            if (PlayerName == null)
            {
                return(0);
            }

            return(PlayerName.GetHashCode() ^ Client.GetHashCode());
        }
Beispiel #4
0
        public override int GetHashCode()
        {
            var hashCode = 2020233827;

            hashCode = hashCode * -1521134295 + PlayerScore.GetHashCode();
            hashCode = hashCode * -1521134295 + SelectedGame.GetHashCode();
            hashCode = hashCode * -1521134295 + PlayerName.GetHashCode();
            hashCode = hashCode * -1521134295 + RecordDate.GetHashCode();
            return(hashCode);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashcode = 23;
         hashcode = (hashcode * 31) + PlayerName.GetHashCode();
         hashcode = (hashcode * 31) + PokerSite;
         return(hashcode);
     }
 }
Beispiel #6
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = PlayerName != null?PlayerName.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ RedAdditive.GetHashCode();
                hashCode = (hashCode * 397) ^ GreenAdditive.GetHashCode();
                hashCode = (hashCode * 397) ^ BlueAdditive.GetHashCode();
                return(hashCode);
            }
        }
Beispiel #7
0
            public override int GetHashCode()
            {
                unchecked
                {
                    var hashcode = 23;
                    hashcode = (hashcode * 31) + PlayerId;
                    hashcode = (hashcode * 31) + PokerSite;

                    if (PlayerName != null)
                    {
                        hashcode = (hashcode * 31) + PlayerName.GetHashCode();
                    }

                    return(hashcode);
                }
            }
Beispiel #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlayerName.Length != 0)
            {
                hash ^= PlayerName.GetHashCode();
            }
            if (PlayerIp.Length != 0)
            {
                hash ^= PlayerIp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlayerId != 0)
            {
                hash ^= PlayerId.GetHashCode();
            }
            if (PlayerName.Length != 0)
            {
                hash ^= PlayerName.GetHashCode();
            }
            if (RoleId != 0)
            {
                hash ^= RoleId.GetHashCode();
            }
            return(hash);
        }
Beispiel #10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlayerID != 0)
            {
                hash ^= PlayerID.GetHashCode();
            }
            if (PlayerName.Length != 0)
            {
                hash ^= PlayerName.GetHashCode();
            }
            if (PlayerMoney != 0)
            {
                hash ^= PlayerMoney.GetHashCode();
            }
            return(hash);
        }
Beispiel #11
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ExpectedDataCount != 0)
            {
                hash ^= ExpectedDataCount.GetHashCode();
            }
            if (PlayerName.Length != 0)
            {
                hash ^= PlayerName.GetHashCode();
            }
            if (TeamName.Length != 0)
            {
                hash ^= TeamName.GetHashCode();
            }
            if (Position.Length != 0)
            {
                hash ^= Position.GetHashCode();
            }
            return(hash);
        }
Beispiel #12
0
 public override int GetHashCode()
 {
     return(PlayerName.GetHashCode());
 }
Beispiel #13
0
 public override int GetHashCode()
 {
     return(PlayerName != null ? PlayerName.GetHashCode() : 0);
 }
Beispiel #14
0
 public override int GetHashCode()
 {
     return(PlayerName.GetHashCode() ^ playerNumber.GetHashCode() ^
            playerSymbol.GetHashCode());
 }
Beispiel #15
0
 // override object.GetHashCode
 public override int GetHashCode() => Points.GetHashCode() *PlayerName.GetHashCode() *Seconds.GetHashCode() *Date.GetHashCode();
Beispiel #16
0
 public override int GetHashCode()
 {
     return(PlayerName.GetHashCode() ^ HandActionType.GetHashCode());
 }