private void TryToLoad <T>() where T : JSONConfigBase { var ty = typeof(T); if (configs.ContainsKey(ty)) { return; } var data = Loader.Deserialize <T>(); var disct = new ExcelDictionary <int, JSONConfigBase>(); foreach (var i in data) { disct[i.ID] = i; } this.configs[ty] = disct; }
public ExcelToJSONConfigManager(IConfigLoader loader) { Loader = loader; configs = new ExcelDictionary <Type, ExcelDictionary <int, JSONConfigBase> >(); Current = this; }