Product.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. LocalizationManager.CurrentLanguage = Product.EnumConvert.ToI2LocalizeLanguageName(Product.Language.INKD);
  50. return;
  51. }
  52. LocalizationManager.CurrentLanguage = Product.EnumConvert.ToI2LocalizeLanguageName(value);
  53. }
  54. }
  55. public static Product.Language OOWU
  56. {
  57. get
  58. {
  59. return (!Product.SPP) ? Product.Language.INKD : Product.Language.QBED;
  60. }
  61. }
  62. public static string gameTitle
  63. {
  64. get
  65. {
  66. return LocalizationManager.GetTranslation("System/カスタムオーダーメイド3D 2", true, 0, true, false, null, null);
  67. }
  68. }
  69. public static string gameDataPath
  70. {
  71. get
  72. {
  73. return string.Empty;
  74. }
  75. }
  76. public static bool enabeldAdditionalRelation
  77. {
  78. get
  79. {
  80. return Product.type != Product.Type.AAA;
  81. }
  82. }
  83. public static void Initialize(AFileSystemBase fileSystem)
  84. {
  85. Product.type = Product.Type.AAA;
  86. Product.WMZI = Product.OOWU;
  87. }
  88. public static void OnApplicationQuit()
  89. {
  90. }
  91. public enum Type
  92. {
  93. AAA,
  94. BBB,
  95. CCC,
  96. DDD
  97. }
  98. public enum Language
  99. {
  100. INKD,
  101. QBED
  102. }
  103. public static class EnumConvert
  104. {
  105. public static string GetString(Product.Language language)
  106. {
  107. if (language == Product.Language.INKD)
  108. {
  109. return "日本語";
  110. }
  111. return "英語";
  112. }
  113. public static string ToI2LocalizeLanguageName(Product.Language language)
  114. {
  115. if (language == Product.Language.INKD)
  116. {
  117. return "Japanese";
  118. }
  119. if (language != Product.Language.QBED)
  120. {
  121. return "Japanese";
  122. }
  123. return "English";
  124. }
  125. public static string GetTerm(Product.Language language)
  126. {
  127. return "System/言語/" + Product.EnumConvert.GetString(language);
  128. }
  129. }
  130. }