Exemplo n.º 1
0
        private void SaveAffixJson(AffixType type, List <AffixBase> affixList)
        {
            string fileName = type.ToString().ToLower();
            string filePath = "\\affixes\\" + fileName;

            SaveToJson <AffixBase>(filePath, affixList);
        }
Exemplo n.º 2
0
        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());
        }
Exemplo n.º 4
0
 private static string GetFileNameFromAffixType(AffixType type)
 {
     return(type.ToString());
 }