Beispiel #1
0
        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;
        }
Beispiel #2
0
 public ExcelToJSONConfigManager(IConfigLoader loader)
 {
     Loader  = loader;
     configs = new ExcelDictionary <Type, ExcelDictionary <int, JSONConfigBase> >();
     Current = this;
 }