Example #1
0
        public bool AddGuest(Character character)
        {
            if (!CanInvite(character, out var error))
            {
                PartyHandler.SendPartyCannotJoinErrorMessage(character.Client, this, error);
                return(false);
            }

            lock (m_guestLocker)
                m_guests.Add(character);

            OnGuestAdded(character);

            return(true);
        }