示例#1
0
        //private static Dictionary<ItemType>
        public DItem ToDItem()
        {
            DItem dItem = new DItem();

            dItem.item_id            = item_id;
            dItem.item_type          = item_type;
            dItem.name               = name;
            dItem.icon_name          = icon_name;
            dItem.health_value       = health_value;
            dItem.speed_value        = speed_value;
            dItem.damage_value       = damage_value;
            dItem.intelligence_value = intelligence_value;
            dItem.defence_value      = defence_value;
            dItem.silver_value       = silver_value;
            return(dItem);
        }
示例#2
0
        static public FItem FromDItem(DItem item)
        {
            FItem fItem = new FItem();

            fItem.item_id   = item.item_id;
            fItem.item_type = item.item_type;
            fItem.name      = item.name;
            fItem.icon_name = item.icon_name;

            fItem.health_value       = item.health_value;
            fItem.speed_value        = item.speed_value;
            fItem.damage_value       = item.damage_value;
            fItem.intelligence_value = item.intelligence_value;
            fItem.defence_value      = item.defence_value;
            fItem.silver_value       = item.silver_value;

            return(fItem);
        }