Exemple #1
0
        public static bool IsMember(PartyId partyId, BnetGameAccountId memberId)
        {
            if (partyId == null)
            {
                return(false);
            }
            PartyMember member = BnetParty.GetMember(partyId, memberId);

            return(member != null);
        }
Exemple #2
0
        public static PartyMember GetMyselfMember(PartyId partyId)
        {
            if (partyId == null)
            {
                return(null);
            }
            BnetGameAccountId bnetGameAccountId = BnetGameAccountId.CreateFromEntityId(BattleNet.GetMyGameAccountId());

            if (bnetGameAccountId == null)
            {
                return(null);
            }
            return(BnetParty.GetMember(partyId, bnetGameAccountId));
        }