Пример #1
0
 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;
 }
Пример #2
0
 public void Deserialize(string language, JSON_SectionParam json)
 {
     this.Deserialize(json);
     this.localizeFields(language);
 }