예제 #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);
        }
예제 #2
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);
        }
예제 #3
0
        public override int GetHashCode()
        {
            if (PlayerName == null)
            {
                return(0);
            }

            return(PlayerName.GetHashCode() ^ Client.GetHashCode());
        }
예제 #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);
     }
 }
예제 #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);
            }
        }
예제 #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);
                }
            }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #12
0
 public override int GetHashCode()
 {
     return(PlayerName.GetHashCode());
 }
예제 #13
0
 public override int GetHashCode()
 {
     return(PlayerName != null ? PlayerName.GetHashCode() : 0);
 }
예제 #14
0
 public override int GetHashCode()
 {
     return(PlayerName.GetHashCode() ^ playerNumber.GetHashCode() ^
            playerSymbol.GetHashCode());
 }
예제 #15
0
 // override object.GetHashCode
 public override int GetHashCode() => Points.GetHashCode() *PlayerName.GetHashCode() *Seconds.GetHashCode() *Date.GetHashCode();
예제 #16
0
 public override int GetHashCode()
 {
     return(PlayerName.GetHashCode() ^ HandActionType.GetHashCode());
 }