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; } } }
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); }
protected bool Equals(MapleMessengerCharacter other) { return(string.Equals(CharacterName, other.CharacterName)); }
public void SilentAddMember(MapleMessengerCharacter member, int position) { m_mMembers.Add(member); member.Position = position; }
public void SilentRemoveMember(MapleMessengerCharacter member) => m_mMembers.Remove(member);
public void AddMember(MapleMessengerCharacter member) { m_mMembers.Add(member); member.Position = GetLowestPosition(); }
public bool ContainsMembers(MapleMessengerCharacter member) => m_mMembers.Contains(member);
public MapleMessenger(int id, MapleMessengerCharacter chrfor) { m_mMembers.Add(chrfor); chrfor.Position = GetLowestPosition(); Id = id; }