Exemplo n.º 1
0
    public void Load(LitJson.JSONNode json)
    {
        id   = JsonReader.Int(json, "ID");
        name = json ["Name"];
//		level = JsonReader.Int (json, "Level");

        basicParam = new DataUnit.BasicBattleParam();
        basicParam.Load(json);

        leadership = JsonReader.Int(json, "Leadership");
        type       = JsonReader.Int(json, "Arms");
//		exp = JsonReader.Int (json, "Exp");

//		skill = (DataSkill.TYPE)JsonReader.Int (json, "Skill");
//		quality = JsonReader.Int (json, "Quality");
    }
Exemplo n.º 2
0
    public void Load(LitJson.JSONNode json)
    {
        id = JsonReader.Int(json, "ID");

        level     = JsonReader.Int(json, "Level");
        mainLevel = JsonReader.Int(json, "MainLevel");

        battleParam = new DataUnit.BasicBattleParam();
        battleParam.Load(json);

        cost = new DataUnit.BasicCost();
        cost.Load(json);

        itemCost1 = new DataUnit.ItemCost();
        itemCost1.Load(json ["Item_1"]);

        itemCost2 = new DataUnit.ItemCost();
        itemCost2.Load(json ["Item_2"]);
    }