public void Deserialize(JSON_WeatherParam json) { if (json == null) { return; } this.mIname = json.iname; this.mName = json.name; this.mExpr = json.expr; this.mIcon = json.icon; this.mEffect = json.effect; this.mBuffIdLists.Clear(); if (json.buff_ids != null) { foreach (string buffId in json.buff_ids) { this.mBuffIdLists.Add(buffId); } } this.mCondIdLists.Clear(); if (json.cond_ids == null) { return; } foreach (string condId in json.cond_ids) { this.mCondIdLists.Add(condId); } }
public void Deserialize(string language, JSON_WeatherParam json) { this.Deserialize(json); this.localizeFields(language); }