Example #1
0
        public string Queue(IParty party, params int[] ids)
        {
            Unqueue(party);

            StringBuilder sb = new StringBuilder();

            if (!party.IsSyncd)
            {
                sb.Append(AutoLevelSyncParty(party));
            }

            IList <IAdventure> adventures = repository.Get(a => {
                return(ids.Contains(a.ID) &&
                       AdventureUtils.GetAllRequirementsPredicate(party).Invoke(a));
            });

            if (adventures.Count != 0)
            {
                sb.Append(Queue(party, adventures));
            }
            else
            {
                sb.Append("The party does not match the requirements for any dungeons ");
                sb.Append("currently available!");
            }

            return(sb.ToString());
        }