Exemplo n.º 1
0
        public static Dictionary <string, JsonItem> FromEquipement(Dictionary <Player.Slot, Item> eq)
        {
            Dictionary <string, JsonItem> res = new Dictionary <string, JsonItem>();

            foreach (Player.Slot s in eq.Keys)
            {
                if (s != Player.Slot.MH && s != Player.Slot.OH && s != Player.Slot.Ranged)
                {
                    res.Add(Player.FromSlot(s), JsonItem.FromItem(eq[s]));
                }
            }

            return(res);
        }