public SkillItemInfo(int index, int id, int lv, int exceed) { SkillItem skillItem = new SkillItem(); skillItem.uniqId = "0"; skillItem.skillItemId = id; skillItem.level = lv; skillItem.exceed = exceed; skillItem.is_locked = 0; skillItem.equipSlots = new List <SkillItem.EquipSetSlot>(); SkillItem.EquipSetSlot item = new SkillItem.EquipSetSlot { euid = "0", setNo = 0, slotNo = index }; skillItem.equipSlots.Add(item); skillItem.exp = 0; skillItem.expNext = 0; skillItem.expPrev = 0; skillItem.price = 0; skillItem.growCost = 0f; skillItem.exceedExp = 0; SetValue(skillItem); num = -1; itemId = 0u; }
public EquipSetSkillData(SkillItem.EquipSetSlot setSkill) { if (ulong.TryParse(setSkill.euid, out ulong result)) { equipItemUniqId = result; } else { Log.Error("Equip Item EquipUniqueId Error euid:{0} setNo:{1}", setSkill.euid, setSkill.setNo); } equipSlotNo = setSkill.slotNo; equipSetNo = setSkill.setNo; }