public void Deserialize(JSON_MultiTowerFloorParam json)
        {
            if (json == null)
            {
                throw new InvalidJSONException();
            }
            this.id            = json.id;
            this.title         = json.title;
            this.name          = json.name;
            this.expr          = json.expr;
            this.cond          = json.cond;
            this.tower_id      = json.tower_id;
            this.cond_floor    = json.cond_floor;
            this.pt            = json.pt;
            this.lv            = json.lv;
            this.joblv         = json.joblv;
            this.reward_id     = json.reward_id;
            this.floor         = json.floor;
            this.unitnum       = json.unitnum;
            this.notcon        = json.notcon;
            this.me_id         = json.me_id;
            this.is_wth_no_chg = json.is_wth_no_chg;
            this.wth_set_id    = json.wth_set_id;
            this.map.Clear();
            if (json.map != null)
            {
                for (int index = 0; index < json.map.Length; ++index)
                {
                    MapParam mapParam = new MapParam();
                    mapParam.Deserialize(json.map[index]);
                    this.map.Add(mapParam);
                }
            }
            GameManager instance = MonoSingleton <GameManager> .Instance;

            this.BaseQuest = instance.FindQuest(this.tower_id);
            QuestParam questParam = this.GetQuestParam();

            instance.AddMTQuest(questParam.iname, questParam);
        }
Exemple #2
0
 public void Deserialize(string language, JSON_MultiTowerFloorParam json)
 {
     this.Deserialize(json);
     this.localizeFields(language);
 }