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

        if (IsRunning != false)
        {
            hash ^= IsRunning.GetHashCode();
        }
        if (IsWaitingForStart != false)
        {
            hash ^= IsWaitingForStart.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (RoomName.Length != 0)
            {
                hash ^= RoomName.GetHashCode();
            }
            if (RoomId != 0L)
            {
                hash ^= RoomId.GetHashCode();
            }
            if (CreateTime != 0L)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (CurPlayerCount != 0)
            {
                hash ^= CurPlayerCount.GetHashCode();
            }
            if (MaxPlayerCount != 0)
            {
                hash ^= MaxPlayerCount.GetHashCode();
            }
            if (Creator != 0L)
            {
                hash ^= Creator.GetHashCode();
            }
            if (IsRunning != false)
            {
                hash ^= IsRunning.GetHashCode();
            }
            if (IsRemove != false)
            {
                hash ^= IsRemove.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            var hashCode = 1442701761;

            hashCode = hashCode * -1521134295 + IsRunning.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Error);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Version);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ApiVersion);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(GoVersion);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(GitCommit);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Built);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(OsArch);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Experimental);

            return(hashCode);
        }