|
|
@ -68,6 +68,8 @@ public class ItemTemplate { |
|
|
|
public EnumSet<Enum.ClassType> item_class_res = EnumSet.noneOf(Enum.ClassType.class); |
|
|
|
public EnumSet<Enum.ClassType> item_class_res = EnumSet.noneOf(Enum.ClassType.class); |
|
|
|
public EnumSet<Enum.DisciplineType> item_disc_req = EnumSet.noneOf(Enum.DisciplineType.class); |
|
|
|
public EnumSet<Enum.DisciplineType> item_disc_req = EnumSet.noneOf(Enum.DisciplineType.class); |
|
|
|
public EnumSet<Enum.DisciplineType> item_disc_res = EnumSet.noneOf(Enum.DisciplineType.class); |
|
|
|
public EnumSet<Enum.DisciplineType> item_disc_res = EnumSet.noneOf(Enum.DisciplineType.class); |
|
|
|
|
|
|
|
public int item_level_req; |
|
|
|
|
|
|
|
public Enum.SexType item_sex_req; |
|
|
|
|
|
|
|
|
|
|
|
public ItemTemplate(JSONObject jsonObject) { |
|
|
|
public ItemTemplate(JSONObject jsonObject) { |
|
|
|
|
|
|
|
|
|
|
@ -253,6 +255,9 @@ public class ItemTemplate { |
|
|
|
item_disc_req.add(Enum.DisciplineType.valueOf(disc)); |
|
|
|
item_disc_req.add(Enum.DisciplineType.valueOf(disc)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
item_level_req = ((Long) jsonObject.get("item_level_req")).intValue(); |
|
|
|
|
|
|
|
item_sex_req = Enum.SexType.valueOf((String) jsonObject.get("item_sex_req")); |
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
Logger.error(e); |
|
|
|
Logger.error(e); |
|
|
|
} |
|
|
|
} |
|
|
|