private void UnlockAllJobClass(Maid maid, bool max) { foreach (JobClass.Data data in JobClass.GetAllDatas(true)) { var job = maid.status.jobClass.Get(data.id) ?? maid.status.jobClass.Add(data, true); if (max) { job?.expSystem.SetLevel(job.expSystem.GetMaxLevel()); } } }
private List GetJobClassInfo() { var datas = new List(); foreach (JobClass.Data data in JobClass.GetAllDatas(true)) { datas.Add(new Dict { ["id"] = data.id, ["name"] = data.uniqueName }); } return(datas); }