/// <summary>
 /// Creates a new <see>ClanMemberStatusEventArgs</see>.
 /// </summary>
 /// <param name="associatedMember">The members whose status has changed.</param>
 public ClanMemberStatusEventArgs(ClanMember associatedMember)
 {
     m_member = associatedMember;
 }
Exemplo n.º 2
0
        private void HandleClanMemberList(ParseData pd)
        {
            DataReader dr = new DataReader(pd.Data);
            dr.Seek(4);
            byte memCount = dr.ReadByte();
            for (int i = 0; i < memCount; i++)
            {
                string userName = dr.ReadCString();
                ClanRank rank = (ClanRank)dr.ReadByte();
                ClanMemberStatus status = (ClanMemberStatus)dr.ReadByte();
                string location = dr.ReadCString();
                m_clanList.Add(userName, new ClanMember(userName, rank, status, location));

            }

            ClanMember[] members = new ClanMember[m_clanList.Count];
            m_clanList.Values.CopyTo(members, 0);

            ClanMemberListEventArgs args = new ClanMemberListEventArgs(members);
            args.EventData = pd;
            OnClanMemberListReceived(args);
        }
 /// <summary>
 /// Creates a new instance of <see>ClanMemberRankChangeEventArgs</see>.
 /// </summary>
 /// <param name="oldRank">The previous rank.</param>
 /// <param name="newRank">The new rank.</param>
 /// <param name="memberWhoChangedTheRank">The member who was responsible for the rank change.</param>
 public ClanMemberRankChangeEventArgs(ClanRank oldRank, ClanRank newRank, ClanMember memberWhoChangedTheRank)
 {
     m_old     = oldRank;
     m_new     = newRank;
     m_changer = memberWhoChangedTheRank;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new instance of <see>ClanMemberListEventArgs</see>.
 /// </summary>
 /// <param name="members">The clan members in the list.</param>
 public ClanMemberListEventArgs(ClanMember[] members)
 {
     m_members = members;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Creates a new <see>ClanMemberStatusEventArgs</see>.
 /// </summary>
 /// <param name="associatedMember">The members whose status has changed.</param>
 public ClanMemberStatusEventArgs(ClanMember associatedMember)
 {
     m_member = associatedMember;
 }
 /// <summary>
 /// Creates a new instance of <see>ClanMemberRankChangeEventArgs</see>.
 /// </summary>
 /// <param name="oldRank">The previous rank.</param>
 /// <param name="newRank">The new rank.</param>
 /// <param name="memberWhoChangedTheRank">The member who was responsible for the rank change.</param>
 public ClanMemberRankChangeEventArgs(ClanRank oldRank, ClanRank newRank, ClanMember memberWhoChangedTheRank)
 {
     m_old = oldRank;
     m_new = newRank;
     m_changer = memberWhoChangedTheRank;
 }