private void Load(StrTableSettingLookup lookup, string fileName, CsvReader <StrTableSetting> reader) { List <StrTableSetting> items = new List <StrTableSetting>(); Load(items, fileName, reader); foreach (StrTableSetting item in items) { lookup.Add(item); } }
public SettingRepository(string folder) { _directory = new DirectoryInfo(folder); if (!_directory.Exists) { Logger.Error($"Could not initialize repository, '{folder}' does not exist"); return; } Items = new Dictionary <int, ItemSetting>(); Maps = new Dictionary <int, MapSetting>(); MapSymbols = new Dictionary <int, MapSymbolSetting>(); Strings = new StrTableSettingLookup(); Monster = new Dictionary <int, MonsterSetting>(); SkillBase = new Dictionary <int, SkillBaseSetting>(); EoBase = new Dictionary <int, EoBaseSetting>(); Npc = new Dictionary <int, NpcSetting>(); ModelAtr = new Dictionary <int, ModelAtrSetting>(); ModelCommon = new Dictionary <int, ModelCommonSetting>(); }
public SettingRepository(string folder) { _directory = new DirectoryInfo(folder); if (!_directory.Exists) { _Logger.Error($"Could not initialize repository, '{folder}' does not exist"); return; } itemInfo = new Dictionary <int, ItemInfoSetting>(); itemNecromancy = new Dictionary <int, ItemNecromancySetting>(); itemLibrary = new Dictionary <int, ItemLibrarySetting>(); map = new Dictionary <int, MapSetting>(); strings = new StrTableSettingLookup(); monster = new Dictionary <int, MonsterSetting>(); skillBase = new Dictionary <int, SkillBaseSetting>(); eoBase = new Dictionary <int, EoBaseSetting>(); npc = new Dictionary <int, NpcSetting>(); modelAtr = new Dictionary <int, ModelAtrSetting>(); modelCommon = new Dictionary <int, ModelCommonSetting>(); honor = new Dictionary <int, HonorSetting>(); }
public MapCsvReader(StrTableSettingLookup stringLookup) { _stringLookup = stringLookup; }
public MapCsvReader() { _stringLookup = null; }