EnumConvert.cs 2.4 KB

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