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

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (UserId.Length != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (team_ != null)
            {
                hash ^= Team.GetHashCode();
            }
            if (PlayState != global::TournamentAssistantShared.Models.Player.Types.PlayStates.Waiting)
            {
                hash ^= PlayState.GetHashCode();
            }
            if (DownloadState != global::TournamentAssistantShared.Models.Player.Types.DownloadStates.None)
            {
                hash ^= DownloadState.GetHashCode();
            }
            if (Score != 0)
            {
                hash ^= Score.GetHashCode();
            }
            if (Combo != 0)
            {
                hash ^= Combo.GetHashCode();
            }
            if (Accuracy != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Accuracy);
            }
            if (SongPosition != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SongPosition);
            }
            if (songList_ != null)
            {
                hash ^= SongList.GetHashCode();
            }
            hash ^= modList_.GetHashCode();
            if (streamScreenCoordinates_ != null)
            {
                hash ^= StreamScreenCoordinates.GetHashCode();
            }
            if (StreamDelayMs != 0L)
            {
                hash ^= StreamDelayMs.GetHashCode();
            }
            if (StreamSyncStartMs != 0L)
            {
                hash ^= StreamSyncStartMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }