Exemple #1
0
 public bool Deserialize(JSON_GeoParam json)
 {
     if (json == null)
     {
         return(false);
     }
     this.iname          = json.iname;
     this.name           = json.name;
     this.cost           = (OInt)Math.Max(json.cost, 1);
     this.DisableStopped = (OBool)(json.stop != 0);
     return(true);
 }
Exemple #2
0
 public void Deserialize(string language, JSON_GeoParam json)
 {
     this.Deserialize(json);
     this.localizeFields(language);
 }