private void SaveAffixJson(AffixType type, List <AffixBase> affixList) { string fileName = type.ToString().ToLower(); string filePath = "\\affixes\\" + fileName; SaveToJson <AffixBase>(filePath, affixList); }
private static Affix CreateTestAffix(string modName, AffixType affixType) { Affix affix = new Affix(); affix.Group = modName; affix.GenerationType = affixType.ToString(); return(affix); }
public List <string> GetValidAffixes() { // var unique = _affixes.Where(x => (FirstStatName == null || x.ModType != FirstStatName) && // (SecondStatName == null || x.ModType != SecondStatName) && // (ThirdStatName == null || x.ModType != ThirdStatName)).ToList(); var matching = _affixes.Where(x => x.Type == _affixType.ToString()).ToList(); var mods = matching.Select(x => x.ModType).ToList(); var distinct = mods.Distinct().ToList(); distinct.Insert(0, string.Empty); return(distinct.ToList()); }
private static string GetFileNameFromAffixType(AffixType type) { return(type.ToString()); }