using System.Linq;
using SGModule.ConfigLoader;

namespace RedHotRoast {
    public class MakeupModel {
        public static Makeup GetData(int id) {
            return ConfigSystem.GetConfig<Makeup>().FirstOrDefault(makeup => makeup.id == id);
        }
    }

    [ConfigKey("makeup")]
    public class Makeup {
        public int id;
        public int item_need;
        public bool is_onetime;
        public int task_need;
        public int ad_need;
        public int item;
        public int levels_need;
        public int AD_Down;
        public int AD_Limit_times;
        public int Login_Limit_times;
        public int Active_time;
        public int Active_time_Down;
        public int Active_Limit_times;
    }

    public class MakeupModel_2 {
        public static Makeup_2 GetData(int id) {
            return ConfigSystem.GetConfig<Makeup_2>().FirstOrDefault(makeup => makeup.id == id);
        }
    }

    [ConfigKey("makeup_2")]
    public class Makeup_2 {
        public int id;
        public int item_need;
        public bool is_onetime;
        public int task_need;
        public int ad_need;
        public int item;
        public int levels_need;
        public int AD_Down;
        public int AD_Limit_times;
        public int Login_Limit_times;
        public int Active_time;
        public int Active_time_Down;
        public int Active_Limit_times;
        public int Reset_time;
        public float ADIncrease;
        public int PayIncrease;
    }
}
