public void Deserialize(JSON_SectionParam json) { if (json == null) { throw new InvalidJSONException(); } this.iname = json.iname; this.name = json.name; this.expr = json.expr; this.start = json.start; this.end = json.end; this.hidden = json.hide != 0; this.home = json.home; this.unit = json.unit; this.prefabPath = json.item; this.shop = json.shop; this.inn = json.inn; this.bar = json.bar; this.bgm = json.bgm; }
public void Deserialize(string language, JSON_SectionParam json) { this.Deserialize(json); this.localizeFields(language); }