EnumConvert.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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 GetString(HeroineType heroineType)
  20. {
  21. string result = string.Empty;
  22. if (heroineType != HeroineType.Original)
  23. {
  24. if (heroineType != HeroineType.Sub)
  25. {
  26. if (heroineType == HeroineType.Transfer)
  27. {
  28. result = "移籍";
  29. }
  30. }
  31. else
  32. {
  33. result = "サブ";
  34. }
  35. }
  36. else
  37. {
  38. result = "ユーザー作成";
  39. }
  40. return result;
  41. }
  42. public static string GetString(Contract contract)
  43. {
  44. string result = string.Empty;
  45. if (contract != Contract.Trainee)
  46. {
  47. if (contract != Contract.Free)
  48. {
  49. if (contract == Contract.Exclusive)
  50. {
  51. result = "専属";
  52. }
  53. }
  54. else
  55. {
  56. result = "フリー";
  57. }
  58. }
  59. else
  60. {
  61. result = "育成中";
  62. }
  63. return result;
  64. }
  65. public static string GetString(Seikeiken seikeiken)
  66. {
  67. string result = string.Empty;
  68. switch (seikeiken)
  69. {
  70. case Seikeiken.No_No:
  71. result = "処女";
  72. break;
  73. case Seikeiken.Yes_No:
  74. result = "経験あり";
  75. break;
  76. case Seikeiken.No_Yes:
  77. result = "後ろ経験あり";
  78. break;
  79. case Seikeiken.Yes_Yes:
  80. result = "両方経験あり";
  81. break;
  82. }
  83. return result;
  84. }
  85. public static string GetString(Relation relation)
  86. {
  87. string result = string.Empty;
  88. if (relation != Relation.Contact)
  89. {
  90. if (relation != Relation.Trust)
  91. {
  92. if (relation == Relation.Lover)
  93. {
  94. result = "恋人";
  95. }
  96. }
  97. else
  98. {
  99. result = "信頼";
  100. }
  101. }
  102. else
  103. {
  104. result = "お近づき";
  105. }
  106. return result;
  107. }
  108. public static string GetString(Relation relation)
  109. {
  110. string result = string.Empty;
  111. switch (relation)
  112. {
  113. case Relation.Tonus:
  114. result = "緊張";
  115. break;
  116. case Relation.Contact:
  117. result = "お近づき";
  118. break;
  119. case Relation.Trust:
  120. result = "信頼";
  121. break;
  122. case Relation.Lover:
  123. result = "恋人";
  124. break;
  125. case Relation.Slave:
  126. result = "愛奴";
  127. break;
  128. }
  129. return result;
  130. }
  131. public static string GetString(Condition condition_)
  132. {
  133. string result = string.Empty;
  134. if (condition_ != Condition.Null)
  135. {
  136. if (condition_ != Condition.Drunk)
  137. {
  138. if (condition_ == Condition.Osioki)
  139. {
  140. result = "お仕置き";
  141. }
  142. }
  143. else
  144. {
  145. result = "酔い";
  146. }
  147. }
  148. else
  149. {
  150. result = "なし";
  151. }
  152. return result;
  153. }
  154. }
  155. }