Sexual.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. using System;
  2. using System.IO;
  3. namespace MaidStatus.Old
  4. {
  5. public class Sexual
  6. {
  7. public Sexual()
  8. {
  9. }
  10. public Sexual(Sexual sexual)
  11. {
  12. this.mouth = sexual.mouth;
  13. this.throat = sexual.throat;
  14. this.nipple = sexual.nipple;
  15. this.front = sexual.front;
  16. this.back = sexual.back;
  17. this.curi = sexual.curi;
  18. }
  19. public static Sexual operator +(Sexual a, Sexual b)
  20. {
  21. return new Sexual
  22. {
  23. mouth = a.mouth + b.mouth,
  24. throat = a.throat + b.throat,
  25. nipple = a.nipple + b.nipple,
  26. front = a.front + b.front,
  27. back = a.back + b.back,
  28. curi = a.curi + b.curi
  29. };
  30. }
  31. public static Sexual operator -(Sexual a, Sexual b)
  32. {
  33. return new Sexual
  34. {
  35. mouth = a.mouth - b.mouth,
  36. throat = a.throat - b.throat,
  37. nipple = a.nipple - b.nipple,
  38. front = a.front - b.front,
  39. back = a.back - b.back,
  40. curi = a.curi - b.curi
  41. };
  42. }
  43. public void Serialize(BinaryWriter binary)
  44. {
  45. binary.Write(this.mouth);
  46. binary.Write(this.throat);
  47. binary.Write(this.nipple);
  48. binary.Write(this.front);
  49. binary.Write(this.back);
  50. binary.Write(this.curi);
  51. }
  52. public void Deserialize(BinaryReader binary, int version)
  53. {
  54. this.mouth = binary.ReadInt32();
  55. this.throat = binary.ReadInt32();
  56. this.nipple = binary.ReadInt32();
  57. this.front = binary.ReadInt32();
  58. this.back = binary.ReadInt32();
  59. this.curi = binary.ReadInt32();
  60. }
  61. public int mouth;
  62. public int throat;
  63. public int nipple;
  64. public int front;
  65. public int back;
  66. public int curi;
  67. }
  68. }