public static RemoteDBListing CreateRemoteMonsterList(MonsterFilter filter)
        {
            RemoteDBListing listing = new RemoteDBListing();

            listing.Items = new List <RemoteDBItem>();
            foreach (Monster ms in from m in Monster.Monsters where filter(m) select m)
            {
                listing.Items.Add(ms.ToDBItem());
            }

            return(listing);
        }
Пример #2
0
        public static RemoteDBListing CreateRemoteSpellList(ItemFilter <Spell> filter)
        {
            RemoteDBListing listing = new RemoteDBListing();

            listing.Items = new List <RemoteDBItem>();
            foreach (Spell ss in from s in Spell.Spells where filter(s) select s)
            {
                listing.Items.Add(ss.ToDBItem());
            }

            return(listing);
        }
Пример #3
0
        public static RemoteDBListing CreateRemoteMagicItemList(ItemFilter <MagicItem> filter)
        {
            RemoteDBListing listing = new RemoteDBListing();

            listing.Items = new List <RemoteDBItem>();
            foreach (MagicItem mis in from mi in MagicItem.Items.Values where filter(mi) select mi)
            {
                listing.Items.Add(mis.ToDBItem());
            }

            return(listing);
        }
Пример #4
0
        public static RemoteDBListing CreateRemoteFeatList(ItemFilter <Feat> filter)
        {
            RemoteDBListing listing = new RemoteDBListing();

            listing.Items = new List <RemoteDBItem>();
            foreach (Feat fs in from f in Feat.Feats where filter(f) select f)
            {
                listing.Items.Add(fs.ToDBItem());
            }

            return(listing);
        }