Beispiel #1
0
 public void UpdateMember(MapleMessengerCharacter member)
 {
     for (var i = 0; i < m_mMembers.Count; i++)
     {
         var chr = m_mMembers[i];
         if (chr == member)
         {
             m_mMembers[i] = member;
         }
     }
 }
Beispiel #2
0
        public void RemoveMember(MapleMessengerCharacter member)
        {
            var position = member.Position;

            if (position == 0)
            {
                m_mPos0 = false;
            }
            else if (position == 1)
            {
                m_mPos1 = false;
            }
            m_mMembers.Remove(member);
        }
Beispiel #3
0
 protected bool Equals(MapleMessengerCharacter other)
 {
     return(string.Equals(CharacterName, other.CharacterName));
 }
Beispiel #4
0
 public void SilentAddMember(MapleMessengerCharacter member, int position)
 {
     m_mMembers.Add(member);
     member.Position = position;
 }
Beispiel #5
0
 public void SilentRemoveMember(MapleMessengerCharacter member) => m_mMembers.Remove(member);
Beispiel #6
0
 public void AddMember(MapleMessengerCharacter member)
 {
     m_mMembers.Add(member);
     member.Position = GetLowestPosition();
 }
Beispiel #7
0
 public bool ContainsMembers(MapleMessengerCharacter member) => m_mMembers.Contains(member);
Beispiel #8
0
 public MapleMessenger(int id, MapleMessengerCharacter chrfor)
 {
     m_mMembers.Add(chrfor);
     chrfor.Position = GetLowestPosition();
     Id = id;
 }