protected virtual void OnGuestRemoved(Character groupGuest, bool kicked) { Party.MemberRemovedHandler guestRemoved = this.GuestRemoved; if (guestRemoved != null) { guestRemoved(this, groupGuest, kicked); } }
protected virtual void OnMemberRemoved(Character groupMember, bool kicked) { if (kicked) { PartyHandler.SendPartyKickedByMessage(groupMember.Client, this, this.Leader); } else { groupMember.Client.Send(new PartyLeaveMessage((uint)this.Id)); } this.ForEach(delegate(Character entry) { PartyHandler.SendPartyMemberRemoveMessage(entry.Client, this, groupMember); }); Party.MemberRemovedHandler memberRemoved = this.MemberRemoved; this.UnBindEvents(groupMember); if (memberRemoved != null) { memberRemoved(this, groupMember, kicked); } }