Params.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. using System;
  2. namespace BackupParamAccessor
  3. {
  4. public class Params
  5. {
  6. public long money
  7. {
  8. get
  9. {
  10. return (long)(this.money_top10 * 1000000000 + this.money_top0);
  11. }
  12. set
  13. {
  14. this.money_top0 = (int)(value % 1000000000L);
  15. this.money_top10 = (int)(value / 1000000000L);
  16. }
  17. }
  18. public long sales
  19. {
  20. get
  21. {
  22. return (long)(this.sales_top10 * 1000000000 + this.sales_top0);
  23. }
  24. set
  25. {
  26. this.sales_top0 = (int)(value % 1000000000L);
  27. this.sales_top10 = (int)(value / 1000000000L);
  28. }
  29. }
  30. public static Params operator -(Params a, Params b)
  31. {
  32. return new Params
  33. {
  34. clubEvaluation = a.clubEvaluation - b.clubEvaluation,
  35. clubMoney = a.clubMoney - b.clubMoney,
  36. salon_cleanliness = a.salon_cleanliness - b.salon_cleanliness,
  37. salon_gorgeous = a.salon_gorgeous - b.salon_gorgeous,
  38. salon_evaluation = a.salon_evaluation - b.salon_evaluation,
  39. money_top0 = a.money_top0 - b.money_top0,
  40. money_top10 = a.money_top10 - b.money_top10,
  41. evaluation = a.evaluation - b.evaluation,
  42. sales_top0 = a.sales_top0 - b.sales_top0,
  43. sales_top10 = a.sales_top10 - b.sales_top10,
  44. study_rate = a.study_rate - b.study_rate,
  45. likability = a.likability - b.likability,
  46. maidClassLv = a.maidClassLv - b.maidClassLv,
  47. maidClassExp = a.maidClassExp - b.maidClassExp,
  48. reception = a.reception - b.reception,
  49. care = a.care - b.care,
  50. lovely = a.lovely - b.lovely,
  51. elegance = a.elegance - b.elegance,
  52. charm = a.charm - b.charm,
  53. cooking = a.cooking - b.cooking,
  54. vocal = a.vocal - b.vocal,
  55. dance = a.dance - b.dance,
  56. appealPoint = a.appealPoint - b.appealPoint,
  57. inyoku = a.inyoku - b.inyoku,
  58. m_value = a.m_value - b.m_value,
  59. hentai = a.hentai - b.hentai,
  60. housi = a.housi - b.housi,
  61. teach_rate = a.teach_rate - b.teach_rate,
  62. yotogiClassLv = a.yotogiClassLv - b.yotogiClassLv,
  63. yotogiClassExp = a.yotogiClassExp - b.yotogiClassExp,
  64. yotogi_play_count = a.yotogi_play_count - b.yotogi_play_count,
  65. others_play_count = a.others_play_count - b.others_play_count
  66. };
  67. }
  68. public int salon_cleanliness;
  69. public int salon_gorgeous;
  70. public int clubEvaluation;
  71. public int clubMoney;
  72. public int salon_evaluation;
  73. public int money_top0;
  74. public int money_top10;
  75. public int cleanliness;
  76. public int gorgeous;
  77. public int evaluation;
  78. public int sales_top0;
  79. public int sales_top10;
  80. public int study_rate;
  81. public int likability;
  82. public int maidClassLv;
  83. public int maidClassExp;
  84. public int teach_rate;
  85. public int reception;
  86. public int care;
  87. public int lovely;
  88. public int elegance;
  89. public int charm;
  90. public int cooking;
  91. public int vocal;
  92. public int dance;
  93. public int appealPoint;
  94. public int inyoku;
  95. public int m_value;
  96. public int hentai;
  97. public int housi;
  98. public int yotogiClassLv;
  99. public int yotogiClassExp;
  100. public int yotogi_play_count;
  101. public int others_play_count;
  102. }
  103. }