_farmHandler.cs 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856
  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. // * 作者: jjr
  11. // * 创建时间: 2017-08-24
  12. // * 用途: 果园
  13. // ***************************************************************************/
  14. // Generated from: farmHandler.proto
  15. // Note: requires additional types generated from: farm.proto
  16. namespace pomelo.farm
  17. {
  18. //---------------------------------------------------------------------------------------
  19. /// <summary>
  20. /// 我的果园信息
  21. /// </summary>
  22. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"MyFarmInfoRequest")]
  23. public partial class MyFarmInfoRequest : global::ProtoBuf.IExtensible
  24. {
  25. public MyFarmInfoRequest() {}
  26. private global::ProtoBuf.IExtension extensionObject;
  27. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  28. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  29. }
  30. //---------------------------------------------------------------------------------------
  31. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"MyFarmInfoResponse")]
  32. public partial class MyFarmInfoResponse : global::ProtoBuf.IExtensible
  33. {
  34. public MyFarmInfoResponse() {}
  35. private int _s2c_code;
  36. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  37. public int s2c_code
  38. {
  39. get { return _s2c_code; }
  40. set { _s2c_code = value; }
  41. }
  42. private string _s2c_msg = "";
  43. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  44. [global::System.ComponentModel.DefaultValue("")]
  45. public string s2c_msg
  46. {
  47. get { return _s2c_msg; }
  48. set { _s2c_msg = value; }
  49. }
  50. private pomelo.farm.PlayerInfo _playerInfo = null;
  51. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"playerInfo", DataFormat = global::ProtoBuf.DataFormat.Default)]
  52. [global::System.ComponentModel.DefaultValue(null)]
  53. public pomelo.farm.PlayerInfo playerInfo
  54. {
  55. get { return _playerInfo; }
  56. set { _playerInfo = value; }
  57. }
  58. private readonly global::System.Collections.Generic.List<pomelo.farm.Seed> _seedLs = new global::System.Collections.Generic.List<pomelo.farm.Seed>();
  59. /// <summary>
  60. /// 种子列表
  61. /// </summary>
  62. [global::ProtoBuf.ProtoMember(4, Name=@"seedLs", DataFormat = global::ProtoBuf.DataFormat.Default)]
  63. public global::System.Collections.Generic.List<pomelo.farm.Seed> seedLs
  64. {
  65. get { return _seedLs; }
  66. }
  67. private readonly global::System.Collections.Generic.List<pomelo.farm.Product> _productLs = new global::System.Collections.Generic.List<pomelo.farm.Product>();
  68. /// <summary>
  69. /// 果实列表
  70. /// </summary>
  71. [global::ProtoBuf.ProtoMember(5, Name=@"productLs", DataFormat = global::ProtoBuf.DataFormat.Default)]
  72. public global::System.Collections.Generic.List<pomelo.farm.Product> productLs
  73. {
  74. get { return _productLs; }
  75. }
  76. private int _exp = default(int);
  77. /// <summary>
  78. /// 农场经验
  79. /// </summary>
  80. [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"exp", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  81. [global::System.ComponentModel.DefaultValue(default(int))]
  82. public int exp
  83. {
  84. get { return _exp; }
  85. set { _exp = value; }
  86. }
  87. private readonly global::System.Collections.Generic.List<pomelo.farm.RecordInfo> _recordInfoLs = new global::System.Collections.Generic.List<pomelo.farm.RecordInfo>();
  88. /// <summary>
  89. /// 果园记录
  90. /// </summary>
  91. [global::ProtoBuf.ProtoMember(7, Name=@"recordInfoLs", DataFormat = global::ProtoBuf.DataFormat.Default)]
  92. public global::System.Collections.Generic.List<pomelo.farm.RecordInfo> recordInfoLs
  93. {
  94. get { return _recordInfoLs; }
  95. }
  96. private global::ProtoBuf.IExtension extensionObject;
  97. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  98. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  99. }
  100. //---------------------------------------------------------------------------------------
  101. /// <summary>
  102. /// 好友果园信息
  103. /// </summary>
  104. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FriendFarmInfoRequest")]
  105. public partial class FriendFarmInfoRequest : global::ProtoBuf.IExtensible
  106. {
  107. public FriendFarmInfoRequest() {}
  108. private string _playerId;
  109. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  110. public string playerId
  111. {
  112. get { return _playerId; }
  113. set { _playerId = value; }
  114. }
  115. private global::ProtoBuf.IExtension extensionObject;
  116. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  117. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  118. }
  119. //---------------------------------------------------------------------------------------
  120. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FriendFarmInfoResponse")]
  121. public partial class FriendFarmInfoResponse : global::ProtoBuf.IExtensible
  122. {
  123. public FriendFarmInfoResponse() {}
  124. private int _s2c_code;
  125. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  126. public int s2c_code
  127. {
  128. get { return _s2c_code; }
  129. set { _s2c_code = value; }
  130. }
  131. private string _s2c_msg = "";
  132. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  133. [global::System.ComponentModel.DefaultValue("")]
  134. public string s2c_msg
  135. {
  136. get { return _s2c_msg; }
  137. set { _s2c_msg = value; }
  138. }
  139. private pomelo.farm.PlayerInfo _playerInfo = null;
  140. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"playerInfo", DataFormat = global::ProtoBuf.DataFormat.Default)]
  141. [global::System.ComponentModel.DefaultValue(null)]
  142. public pomelo.farm.PlayerInfo playerInfo
  143. {
  144. get { return _playerInfo; }
  145. set { _playerInfo = value; }
  146. }
  147. private global::ProtoBuf.IExtension extensionObject;
  148. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  149. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  150. }
  151. //---------------------------------------------------------------------------------------
  152. /// <summary>
  153. /// 好友列表
  154. /// </summary>
  155. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FriendLsRequest")]
  156. public partial class FriendLsRequest : global::ProtoBuf.IExtensible
  157. {
  158. public FriendLsRequest() {}
  159. private global::ProtoBuf.IExtension extensionObject;
  160. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  161. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  162. }
  163. //---------------------------------------------------------------------------------------
  164. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FriendLsResponse")]
  165. public partial class FriendLsResponse : global::ProtoBuf.IExtensible
  166. {
  167. public FriendLsResponse() {}
  168. private int _s2c_code;
  169. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  170. public int s2c_code
  171. {
  172. get { return _s2c_code; }
  173. set { _s2c_code = value; }
  174. }
  175. private string _s2c_msg = "";
  176. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  177. [global::System.ComponentModel.DefaultValue("")]
  178. public string s2c_msg
  179. {
  180. get { return _s2c_msg; }
  181. set { _s2c_msg = value; }
  182. }
  183. private readonly global::System.Collections.Generic.List<pomelo.farm.PlayerSummary> _playerSummary = new global::System.Collections.Generic.List<pomelo.farm.PlayerSummary>();
  184. /// <summary>
  185. /// 好友摘要列表
  186. /// </summary>
  187. [global::ProtoBuf.ProtoMember(3, Name=@"playerSummary", DataFormat = global::ProtoBuf.DataFormat.Default)]
  188. public global::System.Collections.Generic.List<pomelo.farm.PlayerSummary> playerSummary
  189. {
  190. get { return _playerSummary; }
  191. }
  192. private global::ProtoBuf.IExtension extensionObject;
  193. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  194. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  195. }
  196. //---------------------------------------------------------------------------------------
  197. /// <summary>
  198. /// 开垦请求
  199. /// </summary>
  200. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"OpenRequest")]
  201. public partial class OpenRequest : global::ProtoBuf.IExtensible
  202. {
  203. public OpenRequest() {}
  204. private int _blockId;
  205. /// <summary>
  206. /// 田块id
  207. /// </summary>
  208. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"blockId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  209. public int blockId
  210. {
  211. get { return _blockId; }
  212. set { _blockId = value; }
  213. }
  214. private global::ProtoBuf.IExtension extensionObject;
  215. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  216. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  217. }
  218. //---------------------------------------------------------------------------------------
  219. /// <summary>
  220. /// 开垦返回
  221. /// </summary>
  222. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"OpenResponse")]
  223. public partial class OpenResponse : global::ProtoBuf.IExtensible
  224. {
  225. public OpenResponse() {}
  226. private int _s2c_code;
  227. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  228. public int s2c_code
  229. {
  230. get { return _s2c_code; }
  231. set { _s2c_code = value; }
  232. }
  233. private string _s2c_msg = "";
  234. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  235. [global::System.ComponentModel.DefaultValue("")]
  236. public string s2c_msg
  237. {
  238. get { return _s2c_msg; }
  239. set { _s2c_msg = value; }
  240. }
  241. private global::ProtoBuf.IExtension extensionObject;
  242. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  243. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  244. }
  245. //---------------------------------------------------------------------------------------
  246. /// <summary>
  247. /// 播种请求
  248. /// </summary>
  249. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"SowRequest")]
  250. public partial class SowRequest : global::ProtoBuf.IExtensible
  251. {
  252. public SowRequest() {}
  253. private int _blockId;
  254. /// <summary>
  255. /// 地块id
  256. /// </summary>
  257. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"blockId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  258. public int blockId
  259. {
  260. get { return _blockId; }
  261. set { _blockId = value; }
  262. }
  263. private string _seedCode;
  264. /// <summary>
  265. /// 作物代码
  266. /// </summary>
  267. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"seedCode", DataFormat = global::ProtoBuf.DataFormat.Default)]
  268. public string seedCode
  269. {
  270. get { return _seedCode; }
  271. set { _seedCode = value; }
  272. }
  273. private global::ProtoBuf.IExtension extensionObject;
  274. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  275. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  276. }
  277. //---------------------------------------------------------------------------------------
  278. /// <summary>
  279. /// 播种返回
  280. /// </summary>
  281. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"SowResponse")]
  282. public partial class SowResponse : global::ProtoBuf.IExtensible
  283. {
  284. public SowResponse() {}
  285. private int _s2c_code;
  286. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  287. public int s2c_code
  288. {
  289. get { return _s2c_code; }
  290. set { _s2c_code = value; }
  291. }
  292. private string _s2c_msg = "";
  293. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  294. [global::System.ComponentModel.DefaultValue("")]
  295. public string s2c_msg
  296. {
  297. get { return _s2c_msg; }
  298. set { _s2c_msg = value; }
  299. }
  300. private global::ProtoBuf.IExtension extensionObject;
  301. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  302. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  303. }
  304. //---------------------------------------------------------------------------------------
  305. /// <summary>
  306. /// 培育好友请求
  307. /// </summary>
  308. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CultivateFriendRequest")]
  309. public partial class CultivateFriendRequest : global::ProtoBuf.IExtensible
  310. {
  311. public CultivateFriendRequest() {}
  312. private int _blockId;
  313. /// <summary>
  314. /// 地块id
  315. /// </summary>
  316. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"blockId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  317. public int blockId
  318. {
  319. get { return _blockId; }
  320. set { _blockId = value; }
  321. }
  322. private int _cultivateType;
  323. /// <summary>
  324. /// 操作种类
  325. /// </summary>
  326. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"cultivateType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  327. public int cultivateType
  328. {
  329. get { return _cultivateType; }
  330. set { _cultivateType = value; }
  331. }
  332. private string _friendId = "";
  333. /// <summary>
  334. /// 好友id
  335. /// </summary>
  336. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"friendId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  337. [global::System.ComponentModel.DefaultValue("")]
  338. public string friendId
  339. {
  340. get { return _friendId; }
  341. set { _friendId = value; }
  342. }
  343. private global::ProtoBuf.IExtension extensionObject;
  344. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  345. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  346. }
  347. //---------------------------------------------------------------------------------------
  348. /// <summary>
  349. /// 培育好友返回
  350. /// </summary>
  351. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CultivateFriendResponse")]
  352. public partial class CultivateFriendResponse : global::ProtoBuf.IExtensible
  353. {
  354. public CultivateFriendResponse() {}
  355. private int _s2c_code;
  356. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  357. public int s2c_code
  358. {
  359. get { return _s2c_code; }
  360. set { _s2c_code = value; }
  361. }
  362. private string _s2c_msg = "";
  363. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  364. [global::System.ComponentModel.DefaultValue("")]
  365. public string s2c_msg
  366. {
  367. get { return _s2c_msg; }
  368. set { _s2c_msg = value; }
  369. }
  370. private int _fate = default(int);
  371. /// <summary>
  372. /// 获取的仙缘值
  373. /// </summary>
  374. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"fate", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  375. [global::System.ComponentModel.DefaultValue(default(int))]
  376. public int fate
  377. {
  378. get { return _fate; }
  379. set { _fate = value; }
  380. }
  381. private global::ProtoBuf.IExtension extensionObject;
  382. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  383. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  384. }
  385. //---------------------------------------------------------------------------------------
  386. /// <summary>
  387. /// 培育自己请求
  388. /// </summary>
  389. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CultivateSelfRequest")]
  390. public partial class CultivateSelfRequest : global::ProtoBuf.IExtensible
  391. {
  392. public CultivateSelfRequest() {}
  393. private int _blockId;
  394. /// <summary>
  395. /// 地块id
  396. /// </summary>
  397. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"blockId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  398. public int blockId
  399. {
  400. get { return _blockId; }
  401. set { _blockId = value; }
  402. }
  403. private int _cultivateType;
  404. /// <summary>
  405. /// 操作种类
  406. /// </summary>
  407. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"cultivateType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  408. public int cultivateType
  409. {
  410. get { return _cultivateType; }
  411. set { _cultivateType = value; }
  412. }
  413. private global::ProtoBuf.IExtension extensionObject;
  414. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  415. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  416. }
  417. //---------------------------------------------------------------------------------------
  418. /// <summary>
  419. /// 培育自己返回
  420. /// </summary>
  421. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CultivateSelfResponse")]
  422. public partial class CultivateSelfResponse : global::ProtoBuf.IExtensible
  423. {
  424. public CultivateSelfResponse() {}
  425. private int _s2c_code;
  426. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  427. public int s2c_code
  428. {
  429. get { return _s2c_code; }
  430. set { _s2c_code = value; }
  431. }
  432. private string _s2c_msg = "";
  433. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  434. [global::System.ComponentModel.DefaultValue("")]
  435. public string s2c_msg
  436. {
  437. get { return _s2c_msg; }
  438. set { _s2c_msg = value; }
  439. }
  440. private global::ProtoBuf.IExtension extensionObject;
  441. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  442. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  443. }
  444. //---------------------------------------------------------------------------------------
  445. /// <summary>
  446. /// 收获请求
  447. /// </summary>
  448. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"HarvestRequest")]
  449. public partial class HarvestRequest : global::ProtoBuf.IExtensible
  450. {
  451. public HarvestRequest() {}
  452. private int _blockId;
  453. /// <summary>
  454. /// 地块id
  455. /// </summary>
  456. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"blockId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  457. public int blockId
  458. {
  459. get { return _blockId; }
  460. set { _blockId = value; }
  461. }
  462. private global::ProtoBuf.IExtension extensionObject;
  463. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  464. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  465. }
  466. //---------------------------------------------------------------------------------------
  467. /// <summary>
  468. /// 收获返回
  469. /// </summary>
  470. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"HarvestResponse")]
  471. public partial class HarvestResponse : global::ProtoBuf.IExtensible
  472. {
  473. public HarvestResponse() {}
  474. private int _s2c_code;
  475. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  476. public int s2c_code
  477. {
  478. get { return _s2c_code; }
  479. set { _s2c_code = value; }
  480. }
  481. private string _s2c_msg = "";
  482. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  483. [global::System.ComponentModel.DefaultValue("")]
  484. public string s2c_msg
  485. {
  486. get { return _s2c_msg; }
  487. set { _s2c_msg = value; }
  488. }
  489. private int _exp = default(int);
  490. /// <summary>
  491. /// 收获后的果园经验
  492. /// </summary>
  493. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"exp", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  494. [global::System.ComponentModel.DefaultValue(default(int))]
  495. public int exp
  496. {
  497. get { return _exp; }
  498. set { _exp = value; }
  499. }
  500. private int _lv = default(int);
  501. /// <summary>
  502. /// 收获后的果园等级
  503. /// </summary>
  504. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"lv", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  505. [global::System.ComponentModel.DefaultValue(default(int))]
  506. public int lv
  507. {
  508. get { return _lv; }
  509. set { _lv = value; }
  510. }
  511. private pomelo.farm.Block _block = null;
  512. /// <summary>
  513. /// 收获后的地块状态
  514. /// </summary>
  515. [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"block", DataFormat = global::ProtoBuf.DataFormat.Default)]
  516. [global::System.ComponentModel.DefaultValue(null)]
  517. public pomelo.farm.Block block
  518. {
  519. get { return _block; }
  520. set { _block = value; }
  521. }
  522. private global::ProtoBuf.IExtension extensionObject;
  523. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  524. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  525. }
  526. //---------------------------------------------------------------------------------------
  527. /// <summary>
  528. /// 好友偷取请求
  529. /// </summary>
  530. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"StealRequest")]
  531. public partial class StealRequest : global::ProtoBuf.IExtensible
  532. {
  533. public StealRequest() {}
  534. private int _blockId;
  535. /// <summary>
  536. /// 地块id
  537. /// </summary>
  538. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"blockId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  539. public int blockId
  540. {
  541. get { return _blockId; }
  542. set { _blockId = value; }
  543. }
  544. private string _friendId;
  545. /// <summary>
  546. /// 好友id
  547. /// </summary>
  548. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"friendId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  549. public string friendId
  550. {
  551. get { return _friendId; }
  552. set { _friendId = value; }
  553. }
  554. private global::ProtoBuf.IExtension extensionObject;
  555. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  556. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  557. }
  558. //---------------------------------------------------------------------------------------
  559. /// <summary>
  560. /// 好友偷取返回
  561. /// </summary>
  562. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"StealResponse")]
  563. public partial class StealResponse : global::ProtoBuf.IExtensible
  564. {
  565. public StealResponse() {}
  566. private int _s2c_code;
  567. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  568. public int s2c_code
  569. {
  570. get { return _s2c_code; }
  571. set { _s2c_code = value; }
  572. }
  573. private string _s2c_msg = "";
  574. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  575. [global::System.ComponentModel.DefaultValue("")]
  576. public string s2c_msg
  577. {
  578. get { return _s2c_msg; }
  579. set { _s2c_msg = value; }
  580. }
  581. private string _productCode = "";
  582. /// <summary>
  583. /// 作物代码
  584. /// </summary>
  585. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"productCode", DataFormat = global::ProtoBuf.DataFormat.Default)]
  586. [global::System.ComponentModel.DefaultValue("")]
  587. public string productCode
  588. {
  589. get { return _productCode; }
  590. set { _productCode = value; }
  591. }
  592. private int _num = default(int);
  593. /// <summary>
  594. /// 偷取到的数量
  595. /// </summary>
  596. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"num", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  597. [global::System.ComponentModel.DefaultValue(default(int))]
  598. public int num
  599. {
  600. get { return _num; }
  601. set { _num = value; }
  602. }
  603. private global::ProtoBuf.IExtension extensionObject;
  604. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  605. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  606. }
  607. //---------------------------------------------------------------------------------------
  608. /// <summary>
  609. /// 获取商店信息
  610. /// </summary>
  611. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetShopInfoRequest")]
  612. public partial class GetShopInfoRequest : global::ProtoBuf.IExtensible
  613. {
  614. public GetShopInfoRequest() {}
  615. private global::ProtoBuf.IExtension extensionObject;
  616. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  617. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  618. }
  619. //---------------------------------------------------------------------------------------
  620. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetShopInfoResponse")]
  621. public partial class GetShopInfoResponse : global::ProtoBuf.IExtensible
  622. {
  623. public GetShopInfoResponse() {}
  624. private int _s2c_code;
  625. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  626. public int s2c_code
  627. {
  628. get { return _s2c_code; }
  629. set { _s2c_code = value; }
  630. }
  631. private string _s2c_msg = "";
  632. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  633. [global::System.ComponentModel.DefaultValue("")]
  634. public string s2c_msg
  635. {
  636. get { return _s2c_msg; }
  637. set { _s2c_msg = value; }
  638. }
  639. private pomelo.farm.ShopItemInfo _shopItemInfo = null;
  640. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"shopItemInfo", DataFormat = global::ProtoBuf.DataFormat.Default)]
  641. [global::System.ComponentModel.DefaultValue(null)]
  642. public pomelo.farm.ShopItemInfo shopItemInfo
  643. {
  644. get { return _shopItemInfo; }
  645. set { _shopItemInfo = value; }
  646. }
  647. private global::ProtoBuf.IExtension extensionObject;
  648. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  649. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  650. }
  651. //---------------------------------------------------------------------------------------
  652. /// <summary>
  653. /// 兑换商店商品
  654. /// </summary>
  655. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChangeShopItemRequest")]
  656. public partial class ChangeShopItemRequest : global::ProtoBuf.IExtensible
  657. {
  658. public ChangeShopItemRequest() {}
  659. private int _itemId;
  660. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"itemId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  661. public int itemId
  662. {
  663. get { return _itemId; }
  664. set { _itemId = value; }
  665. }
  666. private global::ProtoBuf.IExtension extensionObject;
  667. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  668. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  669. }
  670. //---------------------------------------------------------------------------------------
  671. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChangeShopItemResponse")]
  672. public partial class ChangeShopItemResponse : global::ProtoBuf.IExtensible
  673. {
  674. public ChangeShopItemResponse() {}
  675. private int _s2c_code;
  676. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  677. public int s2c_code
  678. {
  679. get { return _s2c_code; }
  680. set { _s2c_code = value; }
  681. }
  682. private string _s2c_msg = "";
  683. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  684. [global::System.ComponentModel.DefaultValue("")]
  685. public string s2c_msg
  686. {
  687. get { return _s2c_msg; }
  688. set { _s2c_msg = value; }
  689. }
  690. private global::ProtoBuf.IExtension extensionObject;
  691. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  692. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  693. }
  694. }