_roleHandler.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. //
  5. // Changes to this file may cause incorrect behavior and will be lost if
  6. // the code is regenerated.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. // Generated from: roleHandler.proto
  10. // Note: requires additional types generated from: player.proto
  11. namespace pomelo.connector
  12. {
  13. //---------------------------------------------------------------------------------------
  14. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CreatePlayerRequest")]
  15. public partial class CreatePlayerRequest : global::ProtoBuf.IExtensible
  16. {
  17. public CreatePlayerRequest() {}
  18. private int _c2s_pro;
  19. /// <summary>
  20. /// 角色职业
  21. /// </summary>
  22. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_pro", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  23. public int c2s_pro
  24. {
  25. get { return _c2s_pro; }
  26. set { _c2s_pro = value; }
  27. }
  28. private string _c2s_name;
  29. /// <summary>
  30. /// 角色名
  31. /// </summary>
  32. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
  33. public string c2s_name
  34. {
  35. get { return _c2s_name; }
  36. set { _c2s_name = value; }
  37. }
  38. private int _c2s_sex = default(int);
  39. /// <summary>
  40. /// 角色性别
  41. /// </summary>
  42. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"c2s_sex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  43. [global::System.ComponentModel.DefaultValue(default(int))]
  44. public int c2s_sex
  45. {
  46. get { return _c2s_sex; }
  47. set { _c2s_sex = value; }
  48. }
  49. private global::ProtoBuf.IExtension extensionObject;
  50. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  51. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  52. }
  53. //---------------------------------------------------------------------------------------
  54. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CreatePlayerResponse")]
  55. public partial class CreatePlayerResponse : global::ProtoBuf.IExtensible
  56. {
  57. public CreatePlayerResponse() {}
  58. private int _s2c_code;
  59. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  60. public int s2c_code
  61. {
  62. get { return _s2c_code; }
  63. set { _s2c_code = value; }
  64. }
  65. private string _s2c_msg = "";
  66. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  67. [global::System.ComponentModel.DefaultValue("")]
  68. public string s2c_msg
  69. {
  70. get { return _s2c_msg; }
  71. set { _s2c_msg = value; }
  72. }
  73. private pomelo.player.PlayerBasic _s2c_player = null;
  74. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_player", DataFormat = global::ProtoBuf.DataFormat.Default)]
  75. [global::System.ComponentModel.DefaultValue(null)]
  76. public pomelo.player.PlayerBasic s2c_player
  77. {
  78. get { return _s2c_player; }
  79. set { _s2c_player = value; }
  80. }
  81. private readonly global::System.Collections.Generic.List<pomelo.player.PlayerBasic> _s2c_players = new global::System.Collections.Generic.List<pomelo.player.PlayerBasic>();
  82. [global::ProtoBuf.ProtoMember(4, Name=@"s2c_players", DataFormat = global::ProtoBuf.DataFormat.Default)]
  83. public global::System.Collections.Generic.List<pomelo.player.PlayerBasic> s2c_players
  84. {
  85. get { return _s2c_players; }
  86. }
  87. private global::ProtoBuf.IExtension extensionObject;
  88. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  89. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  90. }
  91. //---------------------------------------------------------------------------------------
  92. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChangePlayerNameRequest")]
  93. public partial class ChangePlayerNameRequest : global::ProtoBuf.IExtensible
  94. {
  95. public ChangePlayerNameRequest() {}
  96. private string _c2s_name;
  97. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
  98. public string c2s_name
  99. {
  100. get { return _c2s_name; }
  101. set { _c2s_name = value; }
  102. }
  103. private int _pos;
  104. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"pos", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  105. public int pos
  106. {
  107. get { return _pos; }
  108. set { _pos = value; }
  109. }
  110. private global::ProtoBuf.IExtension extensionObject;
  111. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  112. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  113. }
  114. //---------------------------------------------------------------------------------------
  115. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChangePlayerNameResponse")]
  116. public partial class ChangePlayerNameResponse : global::ProtoBuf.IExtensible
  117. {
  118. public ChangePlayerNameResponse() {}
  119. private int _s2c_code;
  120. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  121. public int s2c_code
  122. {
  123. get { return _s2c_code; }
  124. set { _s2c_code = value; }
  125. }
  126. private string _s2c_msg = "";
  127. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  128. [global::System.ComponentModel.DefaultValue("")]
  129. public string s2c_msg
  130. {
  131. get { return _s2c_msg; }
  132. set { _s2c_msg = value; }
  133. }
  134. private string _s2c_name = "";
  135. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
  136. [global::System.ComponentModel.DefaultValue("")]
  137. public string s2c_name
  138. {
  139. get { return _s2c_name; }
  140. set { _s2c_name = value; }
  141. }
  142. private global::ProtoBuf.IExtension extensionObject;
  143. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  144. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  145. }
  146. //---------------------------------------------------------------------------------------
  147. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetRandomNameRequest")]
  148. public partial class GetRandomNameRequest : global::ProtoBuf.IExtensible
  149. {
  150. public GetRandomNameRequest() {}
  151. private int _c2s_sex;
  152. /// <summary>
  153. /// 性别
  154. /// </summary>
  155. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_sex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  156. public int c2s_sex
  157. {
  158. get { return _c2s_sex; }
  159. set { _c2s_sex = value; }
  160. }
  161. private global::ProtoBuf.IExtension extensionObject;
  162. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  163. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  164. }
  165. //---------------------------------------------------------------------------------------
  166. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetRandomNameResponse")]
  167. public partial class GetRandomNameResponse : global::ProtoBuf.IExtensible
  168. {
  169. public GetRandomNameResponse() {}
  170. private int _s2c_code;
  171. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  172. public int s2c_code
  173. {
  174. get { return _s2c_code; }
  175. set { _s2c_code = value; }
  176. }
  177. private string _s2c_msg = "";
  178. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  179. [global::System.ComponentModel.DefaultValue("")]
  180. public string s2c_msg
  181. {
  182. get { return _s2c_msg; }
  183. set { _s2c_msg = value; }
  184. }
  185. private string _s2c_name = "";
  186. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
  187. [global::System.ComponentModel.DefaultValue("")]
  188. public string s2c_name
  189. {
  190. get { return _s2c_name; }
  191. set { _s2c_name = value; }
  192. }
  193. private global::ProtoBuf.IExtension extensionObject;
  194. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  195. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  196. }
  197. //---------------------------------------------------------------------------------------
  198. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"DeletePlayerRequest")]
  199. public partial class DeletePlayerRequest : global::ProtoBuf.IExtensible
  200. {
  201. public DeletePlayerRequest() {}
  202. private string _c2s_playerId;
  203. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  204. public string c2s_playerId
  205. {
  206. get { return _c2s_playerId; }
  207. set { _c2s_playerId = value; }
  208. }
  209. private global::ProtoBuf.IExtension extensionObject;
  210. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  211. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  212. }
  213. //---------------------------------------------------------------------------------------
  214. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"DeletePlayerResponse")]
  215. public partial class DeletePlayerResponse : global::ProtoBuf.IExtensible
  216. {
  217. public DeletePlayerResponse() {}
  218. private int _s2c_code;
  219. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  220. public int s2c_code
  221. {
  222. get { return _s2c_code; }
  223. set { _s2c_code = value; }
  224. }
  225. private string _s2c_msg = "";
  226. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  227. [global::System.ComponentModel.DefaultValue("")]
  228. public string s2c_msg
  229. {
  230. get { return _s2c_msg; }
  231. set { _s2c_msg = value; }
  232. }
  233. private global::ProtoBuf.IExtension extensionObject;
  234. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  235. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  236. }
  237. }