AnalyzeAssembly.cs 2.6 KB

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