ConfigManager.cs 681 B

1234567891011121314151617181920212223242526
  1. using System.Collections.Generic;
  2. using Plugins.CxShine.Singleton;
  3. namespace Api
  4. {
  5. public class ConfigManager : ScriptSingleton<ConfigManager>
  6. {
  7. public Dictionary<int, CockType> cockTypesMap = new Dictionary<int, CockType>();
  8. public List<int> selectDiamonds;
  9. public void setupCockTypes(List<CockType> cockTypes)
  10. {
  11. foreach (var dataCockType in cockTypes)
  12. {
  13. ConfigManager.Instance.cockTypesMap[dataCockType.id] = dataCockType;
  14. }
  15. }
  16. public void setupSelectDiamonds(List<int> diamonds)
  17. {
  18. this.selectDiamonds = diamonds;
  19. }
  20. }
  21. }