Пример #1
0
 static void LoadData()
 {
     Procs = CsvToSheetsHelper.Get <ProcDto>(Folders.InCoreData("DnD - Procs.csv"));
     foreach (ProcDto procDto in Procs)
     {
         procDto.ProcessArguments();
     }
 }
Пример #2
0
 static void LoadData()
 {
     Functions = CsvToSheetsHelper.Get <FunctionDto>(Folders.InCoreData("DnD - Functions.csv"));
     foreach (FunctionDto functionDto in Functions)
     {
         functionDto.ProcessArguments();
     }
 }
Пример #3
0
        static void LoadData()
        {
            spellEffects = new List <ItemEffect>();
            List <ItemEffectDto> spellEffectDtos = CsvToSheetsHelper.Get <ItemEffectDto>(Folders.InCoreData("DnD - SpellEffects.csv"));

            foreach (ItemEffectDto itemEffect in spellEffectDtos)
            {
                SpellEffects.Add(ItemEffect.From(itemEffect));
            }
        }
        public static void LoadData()
        {
            dieRollEffects = new List <DieRollEffect>();
            List <DieRollEffectDto> dieRollEffectDtos = CsvToSheetsHelper.Get <DieRollEffectDto>(Folders.InCoreData("DnD - DieRollEffects.csv"));

            foreach (DieRollEffectDto dieRollEffect in dieRollEffectDtos)
            {
                DieRollEffects.Add(DieRollEffect.From(dieRollEffect));
            }
        }
Пример #5
0
        static void LoadData()
        {
            List <TrailingEffectsDto> trailingEffectsDtos = CsvToSheetsHelper.Get <TrailingEffectsDto>(Folders.InCoreData("DnD - TrailingEffects.csv"));

            trailingEffects = new List <TrailingEffect>();
            foreach (TrailingEffectsDto trailingEffect in trailingEffectsDtos)
            {
                trailingEffects.Add(TrailingEffect.From(trailingEffect));
            }
        }
Пример #6
0
 public static List <T> LoadTable <T>(string tableName) where T : new()
 {
     return(CsvToSheetsHelper.Get <T>(Folders.InCoreData($"DnD Table - {tableName}.csv")));
 }
Пример #7
0
 public static void LoadData()
 {
     LoadData(CsvToSheetsHelper.Get <FeatureDto>(Folders.InCoreData("DnD - Features.csv")));
 }
Пример #8
0
 public static List <WeaponDto> LoadData(string dataFile)
 {
     return(CsvToSheetsHelper.Get <WeaponDto>(dataFile));
 }
 public static List <PlayerActionShortcutDto> LoadData(string dataFile)
 {
     return(CsvToSheetsHelper.Get <PlayerActionShortcutDto>(dataFile));
 }
Пример #10
0
 static void LoadData()
 {
     Spells = CsvToSheetsHelper.Get <SpellDto>(Folders.InCoreData("DnD - Spells.csv"));
 }
Пример #11
0
 static void LoadData()
 {
     Properties = CsvToSheetsHelper.Get <PropertyDto>(Folders.InCoreData("DnD - Properties.csv"));
 }