ConfigComponent.cs 461 B

1234567891011121314151617
  1. using System;
  2. using System.Collections.Generic;
  3. namespace ET
  4. {
  5. /// <summary>
  6. /// Config组件会扫描所有的有ConfigAttribute标签的配置,加载进来
  7. /// </summary>
  8. public class ConfigComponent: Entity, IAwake, IDestroy
  9. {
  10. public IConfigLoader ConfigLoader { get; set; }
  11. public static ConfigComponent Instance;
  12. public Dictionary<Type, object> AllConfig = new Dictionary<Type, object>();
  13. }
  14. }