Product.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. using System;
  2. using I2.Loc;
  3. public static class Product
  4. {
  5. public static Product.Type type { get; private set; }
  6. public static bool SPP
  7. {
  8. get
  9. {
  10. return Product.type != Product.Type.AAA && Product.type != Product.Type.BBB;
  11. }
  12. }
  13. public static bool VBA
  14. {
  15. get
  16. {
  17. return Product.type == Product.Type.BBB || Product.type == Product.Type.DDD;
  18. }
  19. }
  20. public static bool PIEQ
  21. {
  22. get
  23. {
  24. return Product.type == Product.Type.AAA || Product.type == Product.Type.BBB;
  25. }
  26. }
  27. public static bool SIBD
  28. {
  29. get
  30. {
  31. return Product.type == Product.Type.CCC || Product.type == Product.Type.DDD;
  32. }
  33. }
  34. public static Product.Language WMZI
  35. {
  36. get
  37. {
  38. if (!Product.SPP)
  39. {
  40. return Product.Language.INKD;
  41. }
  42. string currentLanguage = LocalizationManager.CurrentLanguage;
  43. return (!(currentLanguage == "English")) ? Product.Language.INKD : Product.Language.QBED;
  44. }
  45. set
  46. {
  47. if (!Product.SPP)
  48. {
  49. return;
  50. }
  51. LocalizationManager.CurrentLanguage = Product.EnumConvert.ToI2LocalizeLanguageName(value);
  52. }
  53. }
  54. public static Product.Language OOWU
  55. {
  56. get
  57. {
  58. return (!Product.SPP) ? Product.Language.INKD : Product.Language.QBED;
  59. }
  60. }
  61. public static string gameTitle
  62. {
  63. get
  64. {
  65. return LocalizationManager.GetTranslation("System/カスタムオーダーメイド3D 2", true, 0, true, false, null, null);
  66. }
  67. }
  68. public static string gameDataPath
  69. {
  70. get
  71. {
  72. return string.Empty;
  73. }
  74. }
  75. public static bool enabeldAdditionalRelation
  76. {
  77. get
  78. {
  79. return Product.type != Product.Type.AAA;
  80. }
  81. }
  82. public static void Initialize(AFileSystemBase fileSystem)
  83. {
  84. Product.type = Product.Type.AAA;
  85. Product.WMZI = Product.OOWU;
  86. }
  87. public static void OnApplicationQuit()
  88. {
  89. }
  90. public enum Type
  91. {
  92. AAA,
  93. BBB,
  94. CCC,
  95. DDD
  96. }
  97. public enum Language
  98. {
  99. INKD,
  100. QBED
  101. }
  102. public static class EnumConvert
  103. {
  104. public static string GetString(Product.Language language)
  105. {
  106. if (language == Product.Language.INKD)
  107. {
  108. return "日本語";
  109. }
  110. return "英語";
  111. }
  112. public static string ToI2LocalizeLanguageName(Product.Language language)
  113. {
  114. if (language == Product.Language.INKD)
  115. {
  116. return "Japanese";
  117. }
  118. if (language != Product.Language.QBED)
  119. {
  120. return "Japanese";
  121. }
  122. return "English";
  123. }
  124. public static string GetTerm(Product.Language language)
  125. {
  126. return "System/言語/" + Product.EnumConvert.GetString(language);
  127. }
  128. }
  129. }