Product.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. using System;
  2. using I2.Loc;
  3. using UnityEngine;
  4. public static class Product
  5. {
  6. public static Product.PAWCAQ FEA { get; private set; }
  7. public static bool AEWDA
  8. {
  9. get
  10. {
  11. return Product.FEA != Product.PAWCAQ.IKD && Product.FEA != Product.PAWCAQ.OQK;
  12. }
  13. }
  14. public static bool FDAWBW
  15. {
  16. get
  17. {
  18. return Product.FEA == Product.PAWCAQ.OQK || Product.FEA == Product.PAWCAQ.INA;
  19. }
  20. }
  21. public static bool QOPZX
  22. {
  23. get
  24. {
  25. return Product.FEA == Product.PAWCAQ.IKD || Product.FEA == Product.PAWCAQ.OQK;
  26. }
  27. }
  28. public static bool DOPLGBNE
  29. {
  30. get
  31. {
  32. return Product.FEA == Product.PAWCAQ.CMS || Product.FEA == Product.PAWCAQ.INA;
  33. }
  34. }
  35. public static Product.JQOVNMDS OUIWEHVA
  36. {
  37. get
  38. {
  39. if (!Product.AEWDA)
  40. {
  41. return Product.JQOVNMDS.P0L;
  42. }
  43. string currentLanguage = LocalizationManager.CurrentLanguage;
  44. return (!(currentLanguage == "English")) ? Product.JQOVNMDS.P0L : Product.JQOVNMDS.AQC;
  45. }
  46. set
  47. {
  48. if (!Product.AEWDA)
  49. {
  50. LocalizationManager.CurrentLanguage = Product.EnumConvert.FEWQAVASV(Product.JQOVNMDS.P0L);
  51. return;
  52. }
  53. LocalizationManager.CurrentLanguage = Product.EnumConvert.FEWQAVASV(value);
  54. foreach (LanguageSource languageSource in LocalizationManager.Sources)
  55. {
  56. languageSource.LoadAllLanguages(false);
  57. }
  58. }
  59. }
  60. public static Product.JQOVNMDS POEWBBA
  61. {
  62. get
  63. {
  64. return (!Product.AEWDA) ? Product.JQOVNMDS.P0L : Product.JQOVNMDS.AQC;
  65. }
  66. }
  67. public static string gameTitle
  68. {
  69. get
  70. {
  71. string term = "System/カスタムオーダーメイド3D 2";
  72. return LocalizationManager.GetTranslation(term, true, 0, true, false, null, Product.EnumConvert.FEWQAVASV(Product.OUIWEHVA));
  73. }
  74. }
  75. public static string windowTitel
  76. {
  77. get
  78. {
  79. string gameTitle = Product.gameTitle;
  80. return "CUSTOM ORDER MAID 3D 2";
  81. }
  82. }
  83. public static string gameDataPath
  84. {
  85. get
  86. {
  87. Product.PAWCAQ fea = Product.FEA;
  88. if (fea == Product.PAWCAQ.OQK)
  89. {
  90. return "_public";
  91. }
  92. if (fea == Product.PAWCAQ.CMS)
  93. {
  94. return "_en";
  95. }
  96. if (fea != Product.PAWCAQ.INA)
  97. {
  98. return string.Empty;
  99. }
  100. return "_enpublic";
  101. }
  102. }
  103. public static bool FD
  104. {
  105. get
  106. {
  107. return Product.FEA != Product.PAWCAQ.IKD;
  108. }
  109. }
  110. public static void Initialize(AFileSystemBase fileSystem)
  111. {
  112. Product.FEA = Product.PAWCAQ.IKD;
  113. Debug.Log("ProductType:" + Product.FEA.ToString());
  114. Product.OUIWEHVA = Product.POEWBBA;
  115. }
  116. public static void OnApplicationQuit()
  117. {
  118. }
  119. public enum PAWCAQ
  120. {
  121. IKD,
  122. OQK,
  123. CMS,
  124. INA
  125. }
  126. public enum JQOVNMDS
  127. {
  128. P0L,
  129. AQC
  130. }
  131. public static class EnumConvert
  132. {
  133. public static string GTREWVS(Product.JQOVNMDS p)
  134. {
  135. if (p == Product.JQOVNMDS.P0L)
  136. {
  137. return "日本語";
  138. }
  139. return "英語";
  140. }
  141. public static string FEWQAVASV(Product.JQOVNMDS p)
  142. {
  143. if (p == Product.JQOVNMDS.P0L)
  144. {
  145. return "Japanese";
  146. }
  147. if (p != Product.JQOVNMDS.AQC)
  148. {
  149. return "Japanese";
  150. }
  151. return "English";
  152. }
  153. public static string LAWEFV(Product.JQOVNMDS p)
  154. {
  155. return "System/言語/" + Product.EnumConvert.GTREWVS(p);
  156. }
  157. }
  158. }