コード例 #1
0
        public static RemoteDBItem ToDBItem(this Monster monster)
        {
            RemoteDBItem item = new RemoteDBItem();

            item.Name     = monster.Name;
            item.ID       = monster.IsCustom ? monster.DBLoaderID : monster.DetailsID;
            item.IsCustom = monster.IsCustom;

            return(item);
        }
コード例 #2
0
        public static RemoteDBItem ToDBItem(this Spell spell)
        {
            RemoteDBItem item = new RemoteDBItem();

            item.Name     = spell.Name;
            item.ID       = spell.IsCustom ? spell.DBLoaderID : spell.detailsid;
            item.IsCustom = spell.IsCustom;

            return(item);
        }
コード例 #3
0
        public static RemoteDBItem ToDBItem(this MagicItem magicItem)
        {
            RemoteDBItem item = new RemoteDBItem();

            item.Name     = magicItem.Name;
            item.ID       = magicItem.IsCustom ? magicItem.DBLoaderID : magicItem.DetailsID;
            item.IsCustom = magicItem.IsCustom;

            return(item);
        }
コード例 #4
0
        public static RemoteDBItem ToDBItem(this Feat feat)
        {
            RemoteDBItem item = new RemoteDBItem();

            item.Name     = feat.Name;
            item.ID       = feat.IsCustom ? feat.DBLoaderID : feat.Id;
            item.IsCustom = feat.IsCustom;

            return(item);
        }