AnalyzeAssembly.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. namespace ET.Analyzer
  2. {
  3. public static class AnalyzeAssembly
  4. {
  5. private const string DotNetCore = "Core";
  6. private const string DotNetModel = "Model";
  7. private const string DotNetHotfix = "Hotfix";
  8. private const string UnityCore = "Unity.Core";
  9. private const string UnityModel = "Unity.Model";
  10. private const string UnityHotfix = "Unity.Hotfix";
  11. private const string UnityModelView = "Unity.ModelView";
  12. private const string UnityHotfixView = "Unity.HotfixView";
  13. public const string UnityCodes = "Unity.Codes";
  14. public static readonly string[] AllHotfix =
  15. {
  16. DotNetHotfix, UnityHotfix, UnityHotfixView,
  17. };
  18. public static readonly string[] AllModel =
  19. {
  20. DotNetModel, UnityModel,
  21. UnityModelView
  22. };
  23. public static readonly string[] AllModelHotfix =
  24. {
  25. DotNetModel, DotNetHotfix,
  26. UnityModel, UnityHotfix, UnityModelView, UnityHotfixView,
  27. };
  28. public static readonly string[] All =
  29. {
  30. DotNetCore, DotNetModel, DotNetHotfix,
  31. UnityCore, UnityModel, UnityHotfix, UnityModelView, UnityHotfixView,
  32. UnityCodes,
  33. };
  34. public static readonly string[] ServerModelHotfix =
  35. {
  36. DotNetModel,DotNetHotfix,
  37. };
  38. }
  39. public static class UnityCodesPath
  40. {
  41. private const string UnityModel = @"Unity\Assets\Scripts\Model\";
  42. private const string UnityModelView = @"Unity\Assets\Scripts\ModelView\";
  43. private const string UnityHotfix = @"Unity\Assets\Scripts\Hotfix\";
  44. private const string UnityHotfixView = @"Unity\Assets\Scripts\HotfixView\";
  45. public static readonly string[] AllModelHotfix =
  46. {
  47. UnityModel, UnityHotfix, UnityModelView, UnityHotfixView,
  48. };
  49. public static readonly string[] AllHotfix =
  50. {
  51. UnityHotfix, UnityHotfixView,
  52. };
  53. public static readonly string[] AllModel =
  54. {
  55. UnityModel, UnityModelView
  56. };
  57. }
  58. }