EnumConvert.cs 4.1 KB

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