/// <summary> /// Gets class career template. /// Currently read from CLASS??.CFG. Would like to migrate this to a custom JSON format later. /// </summary> public static DFCareer GetClassCareerTemplate(ClassCareers career) { string filename = string.Format("CLASS{0:00}.CFG", (int)career); ClassFile file = new ClassFile(); if (!file.Load(Path.Combine(DaggerfallUnity.Instance.Arena2Path, filename))) { return(null); } return(file.Career); }
/// <summary> /// Gets class career template. /// Currently read from CLASS??.CFG. Would like to migrate this to a custom JSON format later. /// </summary> public static DFCareer GetClassCareerTemplate(ClassCareers career) { string filename = string.Format("CLASS{0:00}.CFG", (int)career); ClassFile file = new ClassFile(); if (!file.Load(Path.Combine(DaggerfallUnity.Instance.Arena2Path, filename))) return null; return file.Career; }