Exemple #1
0
 static void LoadData()
 {
     Procs = CsvToSheetsHelper.Get <ProcDto>(Folders.InCoreData("DnD - Procs.csv"));
     foreach (ProcDto procDto in Procs)
     {
         procDto.ProcessArguments();
     }
 }
Exemple #2
0
 static void LoadData()
 {
     Functions = CsvToSheetsHelper.Get <FunctionDto>(Folders.InCoreData("DnD - Functions.csv"));
     foreach (FunctionDto functionDto in Functions)
     {
         functionDto.ProcessArguments();
     }
 }
        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));
            }
        }
Exemple #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));
            }
        }
Exemple #6
0
 public static List <T> LoadTable <T>(string tableName) where T : new()
 {
     return(CsvToSheetsHelper.Get <T>(Folders.InCoreData($"DnD Table - {tableName}.csv")));
 }
 public static void LoadData()
 {
     LoadData(CsvToSheetsHelper.Get <FeatureDto>(Folders.InCoreData("DnD - Features.csv")));
 }
 public static List <WeaponDto> LoadData(string dataFile)
 {
     return(CsvToSheetsHelper.Get <WeaponDto>(dataFile));
 }
 public static List <PlayerActionShortcutDto> LoadData(string dataFile)
 {
     return(CsvToSheetsHelper.Get <PlayerActionShortcutDto>(dataFile));
 }
Exemple #10
0
 static void LoadData()
 {
     Spells = CsvToSheetsHelper.Get <SpellDto>(Folders.InCoreData("DnD - Spells.csv"));
 }
 static void LoadData()
 {
     Properties = CsvToSheetsHelper.Get <PropertyDto>(Folders.InCoreData("DnD - Properties.csv"));
 }