Esempio n. 1
0
 public override void LoadConfig(string text, LoadConfigComplete cb)
 {
     FlightInfos = LitJson.JsonMapper.ToObject <List <FlightInfo> >(text);
     if (cb != null)
     {
         cb(FlightInfos.Count > 0 ? true : false);
     }
 }
Esempio n. 2
0
    public override void LoadConfig(string text, LoadConfigComplete cb)
    {
        buildingInfo = LitJson.JsonMapper.ToObject <List <BuildingInfo> >(text);

        if (cb != null)
        {
            cb(buildingInfo.Count > 0 ? true : false);
        }
    }
Esempio n. 3
0
    public override void LoadConfig(string text, LoadConfigComplete cb)
    {
        baseConfigList = JsonMapper.ToObject <List <BaseConfigInfo> >(text);

        if (cb != null)
        {
            cb(baseConfigList.Count < 1 ? false : true);
        }
    }
Esempio n. 4
0
    public override void LoadConfig(string text, LoadConfigComplete cb)
    {
        UpgradeExpList = LitJson.JsonMapper.ToObject <List <UpgradeExpInfo> >(text);

        if (cb != null)
        {
            cb(UpgradeExpList.Count > 0 ? true : false);
        }
    }
Esempio n. 5
0
 public virtual void LoadConfig(string text, LoadConfigComplete cb)
 {
 }