ExcelConfig.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System.Collections;
  2. using UnityEngine;
  3. namespace GFGEditor
  4. {
  5. public class ExcelConfig
  6. {
  7. public static string excelsRootDirNameDressUp = "Config";
  8. /// <summary>
  9. /// 存放excel表文件夹的的路径
  10. /// </summary>
  11. //public const string excelsFolderPath = "../../../gfg/tools/Config";
  12. public static string excelsFolderPath { get { return $"../../../tools/{excelsRootDirNameDressUp}/data/"; } }
  13. /// <summary>
  14. /// 存放临时excel表文件夹的的路径
  15. /// </summary>
  16. public static string excelsCacheFolderPath {
  17. get{ return excelsFolderPath + "/CacheConfig/"; }
  18. }
  19. /// <summary>
  20. /// 存放编辑器序列化文件的文件夹路径
  21. /// </summary>
  22. public const string configCodePath = "Assets/Game/CSShare/GFG/HotUpdate/ExcelConfig/GenCode/Item/";
  23. /// <summary>
  24. /// 存放编辑器序列化文件的文件夹路径
  25. /// </summary>
  26. public const string configArrayCodePath = "Assets/Game/CSShare/GFG//HotUpdate/ExcelConfig/GenCode/Array/";
  27. /// <summary>
  28. /// 存放数据Dispose、Init文件的文件夹路径
  29. /// </summary>
  30. public const string handleAllCfgsCache = "Assets/Game/CSShare/GFG//HotUpdate/ExcelConfig/GenCode/";
  31. /// <summary>
  32. /// 存放Excel转化CS文件的文件夹路径
  33. /// </summary>
  34. public const string templatePath = "Assets/Editor/Excel/Template/";
  35. /// <summary>
  36. ///
  37. /// </summary>
  38. public const string CONFIG_ARRAY_TEMPLATE = "{0}{1}Array";
  39. }
  40. }