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

        if (PlayerId != 0)
        {
            hash ^= PlayerId.GetHashCode();
        }
        if (UserName.Length != 0)
        {
            hash ^= UserName.GetHashCode();
        }
        if (Role != 0)
        {
            hash ^= Role.GetHashCode();
        }
        if (IsReady != false)
        {
            hash ^= IsReady.GetHashCode();
        }
        if (Runes != 0)
        {
            hash ^= Runes.GetHashCode();
        }
        if (Faction != 0)
        {
            hash ^= Faction.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }