EnumConvert.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. using System;
  2. using MaidStatus.Old;
  3. namespace MaidStatus
  4. {
  5. public static class EnumConvert
  6. {
  7. public static string GetTerm(Contract contract)
  8. {
  9. return "MaidStatus/契約タイプ/" + EnumConvert.GetString(contract);
  10. }
  11. public static string GetTerm(Seikeiken seikeiken)
  12. {
  13. return "MaidStatus/性経験タイプ/" + EnumConvert.GetString(seikeiken);
  14. }
  15. public static string GetTerm(Relation relation)
  16. {
  17. return "MaidStatus/関係タイプ/" + EnumConvert.GetString(relation);
  18. }
  19. public static string GetTerm(AdditionalRelation relationEnhance)
  20. {
  21. return "MaidStatus/関係タイプ/" + EnumConvert.GetString(relationEnhance);
  22. }
  23. public static string GetTerm(SpecialRelation relationSpecial)
  24. {
  25. return "MaidStatus/関係タイプ/" + EnumConvert.GetString(relationSpecial);
  26. }
  27. public static string GetTerm(Contract contract, Relation relation, AdditionalRelation relationEnhance, SpecialRelation relationSpecial)
  28. {
  29. if (relationSpecial != SpecialRelation.Null)
  30. {
  31. return EnumConvert.GetTerm(relationSpecial);
  32. }
  33. if (relationSpecial != SpecialRelation.Null)
  34. {
  35. return EnumConvert.GetTerm(relationSpecial);
  36. }
  37. if (relationEnhance == AdditionalRelation.Null)
  38. {
  39. return EnumConvert.GetTerm(relation);
  40. }
  41. if (relationEnhance != AdditionalRelation.Slave)
  42. {
  43. return EnumConvert.GetTerm(relationEnhance);
  44. }
  45. return "MaidStatus/関係タイプ/" + ((contract != Contract.Free) ? "専属" : "フリー") + EnumConvert.GetString(relationEnhance);
  46. }
  47. public static string GetString(HeroineType heroineType)
  48. {
  49. string result = string.Empty;
  50. if (heroineType != HeroineType.Original)
  51. {
  52. if (heroineType != HeroineType.Sub)
  53. {
  54. if (heroineType == HeroineType.Transfer)
  55. {
  56. result = "移籍";
  57. }
  58. }
  59. else
  60. {
  61. result = "サブ";
  62. }
  63. }
  64. else
  65. {
  66. result = "ユーザー作成";
  67. }
  68. return result;
  69. }
  70. public static string GetString(Contract contract)
  71. {
  72. string result = string.Empty;
  73. if (contract != Contract.Trainee)
  74. {
  75. if (contract != Contract.Free)
  76. {
  77. if (contract == Contract.Exclusive)
  78. {
  79. result = "専属";
  80. }
  81. }
  82. else
  83. {
  84. result = "フリー";
  85. }
  86. }
  87. else
  88. {
  89. result = "育成中";
  90. }
  91. return result;
  92. }
  93. public static string GetString(Seikeiken seikeiken)
  94. {
  95. string result = string.Empty;
  96. switch (seikeiken)
  97. {
  98. case Seikeiken.No_No:
  99. result = "処女";
  100. break;
  101. case Seikeiken.Yes_No:
  102. result = "経験あり";
  103. break;
  104. case Seikeiken.No_Yes:
  105. result = "後ろ経験あり";
  106. break;
  107. case Seikeiken.Yes_Yes:
  108. result = "両方経験あり";
  109. break;
  110. }
  111. return result;
  112. }
  113. public static string GetString(Relation relation)
  114. {
  115. string result = string.Empty;
  116. if (relation != Relation.Contact)
  117. {
  118. if (relation != Relation.Trust)
  119. {
  120. if (relation == Relation.Lover)
  121. {
  122. result = "恋人";
  123. }
  124. }
  125. else
  126. {
  127. result = "信頼";
  128. }
  129. }
  130. else
  131. {
  132. result = "お近づき";
  133. }
  134. return result;
  135. }
  136. public static string GetString(AdditionalRelation relation)
  137. {
  138. string result = string.Empty;
  139. switch (relation)
  140. {
  141. case AdditionalRelation.Null:
  142. result = "Null";
  143. break;
  144. case AdditionalRelation.Vigilance:
  145. result = "警戒";
  146. break;
  147. case AdditionalRelation.LoverPlus:
  148. result = "恋人+";
  149. break;
  150. case AdditionalRelation.Slave:
  151. result = "愛奴";
  152. break;
  153. }
  154. return result;
  155. }
  156. public static string GetString(SpecialRelation relation)
  157. {
  158. string result = string.Empty;
  159. if (relation != SpecialRelation.Married)
  160. {
  161. if (relation == SpecialRelation.Null)
  162. {
  163. result = "Null";
  164. }
  165. }
  166. else
  167. {
  168. result = "嫁";
  169. }
  170. return result;
  171. }
  172. public static string GetString(Contract contract, Relation relation, AdditionalRelation relationEnhance, SpecialRelation relationSpecial)
  173. {
  174. if (relationSpecial != SpecialRelation.Null)
  175. {
  176. return EnumConvert.GetString(relationSpecial);
  177. }
  178. if (relationEnhance == AdditionalRelation.Null)
  179. {
  180. return EnumConvert.GetString(relation);
  181. }
  182. if (relationEnhance != AdditionalRelation.Slave)
  183. {
  184. return EnumConvert.GetString(relationEnhance);
  185. }
  186. return ((contract != Contract.Free) ? "専属" : "フリー") + EnumConvert.GetString(relationEnhance);
  187. }
  188. public static string GetString(Relation relation)
  189. {
  190. string result = string.Empty;
  191. switch (relation)
  192. {
  193. case Relation.Tonus:
  194. result = "緊張";
  195. break;
  196. case Relation.Contact:
  197. result = "お近づき";
  198. break;
  199. case Relation.Trust:
  200. result = "信頼";
  201. break;
  202. case Relation.Lover:
  203. result = "恋人";
  204. break;
  205. case Relation.Slave:
  206. result = "愛奴";
  207. break;
  208. }
  209. return result;
  210. }
  211. public static string GetString(Condition condition_)
  212. {
  213. string result = string.Empty;
  214. if (condition_ != Condition.Null)
  215. {
  216. if (condition_ != Condition.Drunk)
  217. {
  218. if (condition_ == Condition.Osioki)
  219. {
  220. result = "お仕置き";
  221. }
  222. }
  223. else
  224. {
  225. result = "酔い";
  226. }
  227. }
  228. else
  229. {
  230. result = "なし";
  231. }
  232. return result;
  233. }
  234. public const string TermPrefixContract = "MaidStatus/契約タイプ/";
  235. public const string TermPrefixSeikeiken = "MaidStatus/性経験タイプ/";
  236. public const string TermPrefixRelation = "MaidStatus/関係タイプ/";
  237. }
  238. }