HotfixMessage.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. using ProtoBuf;
  2. using ETModel;
  3. using System.Collections.Generic;
  4. using MongoDB.Bson.Serialization.Attributes;
  5. namespace ETHotfix
  6. {
  7. [Message(HotfixOpcode.C2R_Login)]
  8. [ProtoContract]
  9. public partial class C2R_Login: IRequest
  10. {
  11. [ProtoMember(90, IsRequired = true)]
  12. public int RpcId { get; set; }
  13. [ProtoMember(1, IsRequired = true)]
  14. public string Account;
  15. [ProtoMember(2, IsRequired = true)]
  16. public string Password;
  17. }
  18. [Message(HotfixOpcode.R2C_Login)]
  19. [ProtoContract]
  20. public partial class R2C_Login: IResponse
  21. {
  22. [ProtoMember(90, IsRequired = true)]
  23. public int RpcId { get; set; }
  24. [ProtoMember(91, IsRequired = true)]
  25. public int Error { get; set; }
  26. [ProtoMember(92, IsRequired = true)]
  27. public string Message { get; set; }
  28. [ProtoMember(1, IsRequired = true)]
  29. public string Address;
  30. [ProtoMember(2, IsRequired = true)]
  31. public long Key;
  32. }
  33. [Message(HotfixOpcode.C2G_LoginGate)]
  34. [ProtoContract]
  35. public partial class C2G_LoginGate: IRequest
  36. {
  37. [ProtoMember(90, IsRequired = true)]
  38. public int RpcId { get; set; }
  39. [ProtoMember(1, IsRequired = true)]
  40. public long Key;
  41. }
  42. [Message(HotfixOpcode.G2C_LoginGate)]
  43. [ProtoContract]
  44. public partial class G2C_LoginGate: IResponse
  45. {
  46. [ProtoMember(90, IsRequired = true)]
  47. public int RpcId { get; set; }
  48. [ProtoMember(91, IsRequired = true)]
  49. public int Error { get; set; }
  50. [ProtoMember(92, IsRequired = true)]
  51. public string Message { get; set; }
  52. [ProtoMember(1, IsRequired = true)]
  53. public long PlayerId;
  54. }
  55. [Message(HotfixOpcode.G2C_TestHotfixMessage)]
  56. [ProtoContract]
  57. public partial class G2C_TestHotfixMessage: IMessage
  58. {
  59. [ProtoMember(1, IsRequired = true)]
  60. public string Info;
  61. }
  62. [Message(HotfixOpcode.C2M_TestActorRequest)]
  63. [ProtoContract]
  64. public partial class C2M_TestActorRequest: IActorRequest
  65. {
  66. [ProtoMember(90, IsRequired = true)]
  67. public int RpcId { get; set; }
  68. [ProtoMember(93, IsRequired = true)]
  69. public long ActorId { get; set; }
  70. [ProtoMember(1, IsRequired = true)]
  71. public string Info;
  72. }
  73. [Message(HotfixOpcode.M2C_TestActorResponse)]
  74. [ProtoContract]
  75. public partial class M2C_TestActorResponse: IActorResponse
  76. {
  77. [ProtoMember(90, IsRequired = true)]
  78. public int RpcId { get; set; }
  79. [ProtoMember(91, IsRequired = true)]
  80. public int Error { get; set; }
  81. [ProtoMember(92, IsRequired = true)]
  82. public string Message { get; set; }
  83. [ProtoMember(1, IsRequired = true)]
  84. public string Info;
  85. }
  86. [Message(HotfixOpcode.PlayerInfo)]
  87. [ProtoContract]
  88. public partial class PlayerInfo: IMessage
  89. {
  90. }
  91. [Message(HotfixOpcode.C2G_PlayerInfo)]
  92. [ProtoContract]
  93. public partial class C2G_PlayerInfo: IRequest
  94. {
  95. [ProtoMember(90, IsRequired = true)]
  96. public int RpcId { get; set; }
  97. }
  98. [Message(HotfixOpcode.G2C_PlayerInfo)]
  99. [ProtoContract]
  100. public partial class G2C_PlayerInfo: IResponse
  101. {
  102. [ProtoMember(90, IsRequired = true)]
  103. public int RpcId { get; set; }
  104. [ProtoMember(91, IsRequired = true)]
  105. public int Error { get; set; }
  106. [ProtoMember(92, IsRequired = true)]
  107. public string Message { get; set; }
  108. [ProtoMember(1)]
  109. public List<PlayerInfo> PlayerInfos = new List<PlayerInfo>();
  110. }
  111. }