Exemplo n.º 1
0
        private ENpc[] BuildInvolvedENpcs()
        {
            List <ENpc> enpcs = new List <ENpc> {
                IssuingENpc
            };

            if (Sheet.Collection.IsLibraAvailable)
            {
                Collections.ENpcCollection enpcColl = Sheet.Collection.ENpcs;
                var libraRows = Sheet.Collection.Libra.ENpcResident_Quest.Where(i => i.Quest_Key == this.Key);
                foreach (var r in libraRows)
                {
                    enpcs.Add(enpcColl[(int)r.ENpcResident_Key]);
                }
            }

            enpcs.Add(TargetENpc);

            return(enpcs.Distinct().ToArray());
        }
 public Enumerator(ENpcCollection collection)
 {
     _Collection     = collection;
     _BaseEnumerator = collection.BaseSheet.GetEnumerator();
 }