public CareerRequirementInfo(List <string> list) : base(RequirementTypeEx.TargetCareer) { for (int i = 1; i < list.Count; i++) { CareerReq career = new CareerReq(); List <string> data = new List <string> (list[i].Split(new char[] { ':' })); ParserFunctions.TryParseEnum <OccupationNames>(data[0], out career.mName, OccupationNames.Undefined); if (career.mName == OccupationNames.Undefined) { career.mName = unchecked ((OccupationNames)ResourceUtils.HashString64(data[0])); } if (data.Count == 2) { career.mBranch = data[1]; } mCareers.Add(career); } }
public CareerRequirementInfo(List<string> list) : base(RequirementTypeEx.TargetCareer) { for (int i = 1; i < list.Count; i++) { CareerReq career = new CareerReq(); List<string> data = new List<string> (list[i].Split(new char[] { ':' })); ParserFunctions.TryParseEnum<OccupationNames>(data[0], out career.mName, OccupationNames.Undefined); if (career.mName == OccupationNames.Undefined) { career.mName = unchecked((OccupationNames)ResourceUtils.HashString64(data[0])); } if (data.Count == 2) { career.mBranch = data[1]; } mCareers.Add(career); } }