internal void Clear() { foreach (var member in _members.Values) { OnMemberLeave?.Invoke(member); member.Dispose(); } _members.Clear(); }
internal bool Remove(AccountHandle handle) { if (_members.TryGetValue(handle, out LobbyMember member)) { _members.Remove(handle); OnMemberLeave?.Invoke(member); member.Dispose(); return(true); } return(false); }