EnumConvert.cs 4.8 KB

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