internal static LearnableMove Parse(JsonData json) { var lm = new LearnableMove(json[NAME].ToString().Replace('-', ' '), BASE_URI + json[RESU].ToString()) { LearnType = json[L_TP].ToString() }; int lv = -1; if (json.Keys.Contains(LVL)) Int32.TryParse(json[LVL].ToString(), out lv); lm.Level = lv; return lm; }
internal static LearnableMove Parse(JsonData json) { var lm = new LearnableMove(json[NAME].ToString().Replace('-', ' '), BASE_URI + json[RESU].ToString()) { LearnType = json[L_TP].ToString() }; int lv = -1; if (json.Keys.Contains(LVL)) { Int32.TryParse(json[LVL].ToString(), out lv); } lm.Level = lv; return(lm); }