_robberyHandler.cs 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  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. // ***************************************************************************
  10. // 作者= 曾振东
  11. // 创建时间= 2019-07-23
  12. // 用途= 渡劫成魔协议
  13. // ***************************************************************************
  14. // Generated from: robberyHandler.proto
  15. // Note: requires additional types generated from: common.proto
  16. // Note: requires additional types generated from: item.proto
  17. namespace pomelo.robbery
  18. {
  19. //---------------------------------------------------------------------------------------
  20. /// <summary>
  21. /// 魔头信息
  22. /// </summary>
  23. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"DevilInfo")]
  24. public partial class DevilInfo : global::ProtoBuf.IExtensible
  25. {
  26. public DevilInfo() {}
  27. private string _playerName;
  28. /// <summary>
  29. /// 玩家名称
  30. /// </summary>
  31. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"playerName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  32. public string playerName
  33. {
  34. get { return _playerName; }
  35. set { _playerName = value; }
  36. }
  37. private int _playerOrder = default(int);
  38. /// <summary>
  39. /// 玩家仙阶
  40. /// </summary>
  41. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"playerOrder", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  42. [global::System.ComponentModel.DefaultValue(default(int))]
  43. public int playerOrder
  44. {
  45. get { return _playerOrder; }
  46. set { _playerOrder = value; }
  47. }
  48. private string _serverId = "";
  49. /// <summary>
  50. /// 服务器id
  51. /// </summary>
  52. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"serverId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  53. [global::System.ComponentModel.DefaultValue("")]
  54. public string serverId
  55. {
  56. get { return _serverId; }
  57. set { _serverId = value; }
  58. }
  59. private string _serverName = "";
  60. /// <summary>
  61. /// 服务器名称
  62. /// </summary>
  63. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"serverName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  64. [global::System.ComponentModel.DefaultValue("")]
  65. public string serverName
  66. {
  67. get { return _serverName; }
  68. set { _serverName = value; }
  69. }
  70. private int _areaId = default(int);
  71. /// <summary>
  72. /// 区域ID
  73. /// </summary>
  74. [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"areaId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  75. [global::System.ComponentModel.DefaultValue(default(int))]
  76. public int areaId
  77. {
  78. get { return _areaId; }
  79. set { _areaId = value; }
  80. }
  81. private int _mapId = default(int);
  82. /// <summary>
  83. /// 地图ID
  84. /// </summary>
  85. [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"mapId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  86. [global::System.ComponentModel.DefaultValue(default(int))]
  87. public int mapId
  88. {
  89. get { return _mapId; }
  90. set { _mapId = value; }
  91. }
  92. private readonly global::System.Collections.Generic.List<int> _xy = new global::System.Collections.Generic.List<int>();
  93. /// <summary>
  94. /// 坐标[x,y]
  95. /// </summary>
  96. [global::ProtoBuf.ProtoMember(7, Name=@"xy", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  97. public global::System.Collections.Generic.List<int> xy
  98. {
  99. get { return _xy; }
  100. }
  101. private string _instanceId = "";
  102. /// <summary>
  103. /// 场景实例id, 已替换成playerId
  104. /// </summary>
  105. [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"instanceId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  106. [global::System.ComponentModel.DefaultValue("")]
  107. public string instanceId
  108. {
  109. get { return _instanceId; }
  110. set { _instanceId = value; }
  111. }
  112. private global::ProtoBuf.IExtension extensionObject;
  113. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  114. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  115. }
  116. //---------------------------------------------------------------------------------------
  117. /// <summary>
  118. /// 请求渡劫 请求
  119. /// </summary>
  120. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"UpgradeClassRequest")]
  121. public partial class UpgradeClassRequest : global::ProtoBuf.IExtensible
  122. {
  123. public UpgradeClassRequest() {}
  124. private int _opType;
  125. /// <summary>
  126. /// 渡劫类型(0:单人渡劫 1:组队渡劫)
  127. /// </summary>
  128. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"opType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  129. public int opType
  130. {
  131. get { return _opType; }
  132. set { _opType = value; }
  133. }
  134. private global::ProtoBuf.IExtension extensionObject;
  135. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  136. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  137. }
  138. //---------------------------------------------------------------------------------------
  139. /// <summary>
  140. /// 请求渡劫 返回
  141. /// </summary>
  142. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"UpgradeClassResponse")]
  143. public partial class UpgradeClassResponse : global::ProtoBuf.IExtensible
  144. {
  145. public UpgradeClassResponse() {}
  146. private int _s2c_code;
  147. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  148. public int s2c_code
  149. {
  150. get { return _s2c_code; }
  151. set { _s2c_code = value; }
  152. }
  153. private string _s2c_msg = "";
  154. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  155. [global::System.ComponentModel.DefaultValue("")]
  156. public string s2c_msg
  157. {
  158. get { return _s2c_msg; }
  159. set { _s2c_msg = 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. /// <summary>
  167. /// 开始渡劫 请求
  168. /// </summary>
  169. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RobberyStartRequest")]
  170. public partial class RobberyStartRequest : global::ProtoBuf.IExtensible
  171. {
  172. public RobberyStartRequest() {}
  173. private readonly global::System.Collections.Generic.List<pomelo.item.CountItem> _items = new global::System.Collections.Generic.List<pomelo.item.CountItem>();
  174. /// <summary>
  175. /// 增加渡劫成功率的物品list
  176. /// </summary>
  177. [global::ProtoBuf.ProtoMember(1, Name=@"items", DataFormat = global::ProtoBuf.DataFormat.Default)]
  178. public global::System.Collections.Generic.List<pomelo.item.CountItem> items
  179. {
  180. get { return _items; }
  181. }
  182. private global::ProtoBuf.IExtension extensionObject;
  183. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  184. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  185. }
  186. //---------------------------------------------------------------------------------------
  187. /// <summary>
  188. /// 开始渡劫 返回
  189. /// </summary>
  190. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RobberyStartResponse")]
  191. public partial class RobberyStartResponse : global::ProtoBuf.IExtensible
  192. {
  193. public RobberyStartResponse() {}
  194. private int _s2c_code;
  195. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  196. public int s2c_code
  197. {
  198. get { return _s2c_code; }
  199. set { _s2c_code = value; }
  200. }
  201. private string _s2c_msg = "";
  202. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  203. [global::System.ComponentModel.DefaultValue("")]
  204. public string s2c_msg
  205. {
  206. get { return _s2c_msg; }
  207. set { _s2c_msg = value; }
  208. }
  209. private int _s2c_result = default(int);
  210. /// <summary>
  211. /// 渡劫结果(0:失败 1:成功)
  212. /// </summary>
  213. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"s2c_result", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  214. [global::System.ComponentModel.DefaultValue(default(int))]
  215. public int s2c_result
  216. {
  217. get { return _s2c_result; }
  218. set { _s2c_result = value; }
  219. }
  220. private global::ProtoBuf.IExtension extensionObject;
  221. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  222. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  223. }
  224. //---------------------------------------------------------------------------------------
  225. /// <summary>
  226. /// 渡劫结束后续操作 请求
  227. /// </summary>
  228. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RobberyOverFollowUpRequest")]
  229. public partial class RobberyOverFollowUpRequest : global::ProtoBuf.IExtensible
  230. {
  231. public RobberyOverFollowUpRequest() {}
  232. private int _isWin;
  233. /// <summary>
  234. /// 废弃字段,没用
  235. /// </summary>
  236. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"isWin", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  237. public int isWin
  238. {
  239. get { return _isWin; }
  240. set { _isWin = value; }
  241. }
  242. private global::ProtoBuf.IExtension extensionObject;
  243. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  244. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  245. }
  246. //---------------------------------------------------------------------------------------
  247. /// <summary>
  248. /// 渡劫结束后续操作 返回
  249. /// </summary>
  250. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RobberyOverFollowUpResponse")]
  251. public partial class RobberyOverFollowUpResponse : global::ProtoBuf.IExtensible
  252. {
  253. public RobberyOverFollowUpResponse() {}
  254. private int _s2c_code;
  255. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  256. public int s2c_code
  257. {
  258. get { return _s2c_code; }
  259. set { _s2c_code = value; }
  260. }
  261. private string _s2c_msg = "";
  262. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  263. [global::System.ComponentModel.DefaultValue("")]
  264. public string s2c_msg
  265. {
  266. get { return _s2c_msg; }
  267. set { _s2c_msg = value; }
  268. }
  269. private global::ProtoBuf.IExtension extensionObject;
  270. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  271. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  272. }
  273. //---------------------------------------------------------------------------------------
  274. /// <summary>
  275. /// 获取成魔信息 请求
  276. /// </summary>
  277. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetRobberyDevilInfoRequest")]
  278. public partial class GetRobberyDevilInfoRequest : global::ProtoBuf.IExtensible
  279. {
  280. public GetRobberyDevilInfoRequest() {}
  281. private global::ProtoBuf.IExtension extensionObject;
  282. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  283. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  284. }
  285. //---------------------------------------------------------------------------------------
  286. /// <summary>
  287. /// 获取成魔信息 返回
  288. /// </summary>
  289. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetRobberyDevilInfoResponse")]
  290. public partial class GetRobberyDevilInfoResponse : global::ProtoBuf.IExtensible
  291. {
  292. public GetRobberyDevilInfoResponse() {}
  293. private int _s2c_code;
  294. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  295. public int s2c_code
  296. {
  297. get { return _s2c_code; }
  298. set { _s2c_code = value; }
  299. }
  300. private string _s2c_msg = "";
  301. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  302. [global::System.ComponentModel.DefaultValue("")]
  303. public string s2c_msg
  304. {
  305. get { return _s2c_msg; }
  306. set { _s2c_msg = value; }
  307. }
  308. private readonly global::System.Collections.Generic.List<pomelo.robbery.DevilInfo> _s2c_devilInfo = new global::System.Collections.Generic.List<pomelo.robbery.DevilInfo>();
  309. [global::ProtoBuf.ProtoMember(3, Name=@"s2c_devilInfo", DataFormat = global::ProtoBuf.DataFormat.Default)]
  310. public global::System.Collections.Generic.List<pomelo.robbery.DevilInfo> s2c_devilInfo
  311. {
  312. get { return _s2c_devilInfo; }
  313. }
  314. private global::ProtoBuf.IExtension extensionObject;
  315. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  316. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  317. }
  318. //---------------------------------------------------------------------------------------
  319. /// <summary>
  320. /// 请求进入成魔场景,725
  321. /// </summary>
  322. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"EnterDevilAreaRequest")]
  323. public partial class EnterDevilAreaRequest : global::ProtoBuf.IExtensible
  324. {
  325. public EnterDevilAreaRequest() {}
  326. private string _playerid;
  327. /// <summary>
  328. /// 成魔玩家id
  329. /// </summary>
  330. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"playerid", DataFormat = global::ProtoBuf.DataFormat.Default)]
  331. public string playerid
  332. {
  333. get { return _playerid; }
  334. set { _playerid = value; }
  335. }
  336. private global::ProtoBuf.IExtension extensionObject;
  337. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  338. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  339. }
  340. //---------------------------------------------------------------------------------------
  341. /// <summary>
  342. /// 请求进入成魔场景 返回
  343. /// </summary>
  344. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"EnterDevilAreaResponse")]
  345. public partial class EnterDevilAreaResponse : global::ProtoBuf.IExtensible
  346. {
  347. public EnterDevilAreaResponse() {}
  348. private int _s2c_code;
  349. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  350. public int s2c_code
  351. {
  352. get { return _s2c_code; }
  353. set { _s2c_code = value; }
  354. }
  355. private string _s2c_msg = "";
  356. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  357. [global::System.ComponentModel.DefaultValue("")]
  358. public string s2c_msg
  359. {
  360. get { return _s2c_msg; }
  361. set { _s2c_msg = value; }
  362. }
  363. private global::ProtoBuf.IExtension extensionObject;
  364. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  365. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  366. }
  367. //---------------------------------------------------------------------------------------
  368. /// <summary>
  369. /// 渡劫推送
  370. /// </summary>
  371. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RobberyPush")]
  372. public partial class RobberyPush : global::ProtoBuf.IExtensible
  373. {
  374. public RobberyPush() {}
  375. private string _s2c_playerId;
  376. /// <summary>
  377. /// 当前渡劫的玩家
  378. /// </summary>
  379. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  380. public string s2c_playerId
  381. {
  382. get { return _s2c_playerId; }
  383. set { _s2c_playerId = value; }
  384. }
  385. private readonly global::System.Collections.Generic.List<int> _s2c_robberyEffects = new global::System.Collections.Generic.List<int>();
  386. /// <summary>
  387. /// 劈雷特效播放数组(size为劈雷次数)
  388. /// </summary>
  389. [global::ProtoBuf.ProtoMember(2, Name=@"s2c_robberyEffects", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  390. public global::System.Collections.Generic.List<int> s2c_robberyEffects
  391. {
  392. get { return _s2c_robberyEffects; }
  393. }
  394. private int _s2c_result = default(int);
  395. /// <summary>
  396. /// 结算结果(0:失败 1:成功)
  397. /// </summary>
  398. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_result", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  399. [global::System.ComponentModel.DefaultValue(default(int))]
  400. public int s2c_result
  401. {
  402. get { return _s2c_result; }
  403. set { _s2c_result = value; }
  404. }
  405. private global::ProtoBuf.IExtension extensionObject;
  406. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  407. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  408. }
  409. //---------------------------------------------------------------------------------------
  410. /// <summary>
  411. /// 渡劫结束推送
  412. /// </summary>
  413. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RobberyEndPush")]
  414. public partial class RobberyEndPush : global::ProtoBuf.IExtensible
  415. {
  416. public RobberyEndPush() {}
  417. private global::ProtoBuf.IExtension extensionObject;
  418. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  419. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  420. }
  421. //---------------------------------------------------------------------------------------
  422. /// <summary>
  423. /// 获得成魔buff
  424. /// </summary>
  425. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetRobberyDevilBuffPush")]
  426. public partial class GetRobberyDevilBuffPush : global::ProtoBuf.IExtensible
  427. {
  428. public GetRobberyDevilBuffPush() {}
  429. private global::ProtoBuf.IExtension extensionObject;
  430. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  431. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  432. }
  433. //---------------------------------------------------------------------------------------
  434. /// <summary>
  435. /// 成魔buff结束
  436. /// </summary>
  437. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RobberyDevilOverPush")]
  438. public partial class RobberyDevilOverPush : global::ProtoBuf.IExtensible
  439. {
  440. public RobberyDevilOverPush() {}
  441. private global::ProtoBuf.IExtension extensionObject;
  442. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  443. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  444. }
  445. }