_interactHandler.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  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. // * 创建时间: 2015-12-11
  12. // * 用途: 交互
  13. // ***************************************************************************
  14. // Generated from: interactHandler.proto
  15. // Note: requires additional types generated from: common.proto
  16. namespace pomelo.area
  17. {
  18. //---------------------------------------------------------------------------------------
  19. /// <summary>
  20. /// 交互请求 (送花,...)
  21. /// </summary>
  22. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"InteractRequest")]
  23. public partial class InteractRequest : global::ProtoBuf.IExtensible
  24. {
  25. public InteractRequest() {}
  26. private int _c2s_id;
  27. /// <summary>
  28. /// 交互类型id
  29. /// </summary>
  30. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  31. public int c2s_id
  32. {
  33. get { return _c2s_id; }
  34. set { _c2s_id = value; }
  35. }
  36. private string _c2s_playerId;
  37. /// <summary>
  38. /// 目标玩家id
  39. /// </summary>
  40. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  41. public string c2s_playerId
  42. {
  43. get { return _c2s_playerId; }
  44. set { _c2s_playerId = value; }
  45. }
  46. private string _c2s_playerName;
  47. /// <summary>
  48. /// 目标玩家名称
  49. /// </summary>
  50. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"c2s_playerName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  51. public string c2s_playerName
  52. {
  53. get { return _c2s_playerName; }
  54. set { _c2s_playerName = value; }
  55. }
  56. private global::ProtoBuf.IExtension extensionObject;
  57. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  58. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  59. }
  60. //---------------------------------------------------------------------------------------
  61. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"InteractResponse")]
  62. public partial class InteractResponse : global::ProtoBuf.IExtensible
  63. {
  64. public InteractResponse() {}
  65. private int _s2c_code;
  66. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  67. public int s2c_code
  68. {
  69. get { return _s2c_code; }
  70. set { _s2c_code = value; }
  71. }
  72. private string _s2c_msg = "";
  73. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  74. [global::System.ComponentModel.DefaultValue("")]
  75. public string s2c_msg
  76. {
  77. get { return _s2c_msg; }
  78. set { _s2c_msg = value; }
  79. }
  80. private global::ProtoBuf.IExtension extensionObject;
  81. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  82. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  83. }
  84. //---------------------------------------------------------------------------------------
  85. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"InteractConfigRequest")]
  86. public partial class InteractConfigRequest : global::ProtoBuf.IExtensible
  87. {
  88. public InteractConfigRequest() {}
  89. private global::ProtoBuf.IExtension extensionObject;
  90. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  91. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  92. }
  93. //---------------------------------------------------------------------------------------
  94. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"InteractConfig")]
  95. public partial class InteractConfig : global::ProtoBuf.IExtensible
  96. {
  97. public InteractConfig() {}
  98. private int _id;
  99. /// <summary>
  100. /// 交互id
  101. /// </summary>
  102. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  103. public int id
  104. {
  105. get { return _id; }
  106. set { _id = value; }
  107. }
  108. private string _name = "";
  109. /// <summary>
  110. /// 交互名称
  111. /// </summary>
  112. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
  113. [global::System.ComponentModel.DefaultValue("")]
  114. public string name
  115. {
  116. get { return _name; }
  117. set { _name = value; }
  118. }
  119. private int _type = default(int);
  120. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  121. [global::System.ComponentModel.DefaultValue(default(int))]
  122. public int type
  123. {
  124. get { return _type; }
  125. set { _type = value; }
  126. }
  127. private int _charm = default(int);
  128. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"charm", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  129. [global::System.ComponentModel.DefaultValue(default(int))]
  130. public int charm
  131. {
  132. get { return _charm; }
  133. set { _charm = value; }
  134. }
  135. private int _gold = default(int);
  136. [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"gold", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  137. [global::System.ComponentModel.DefaultValue(default(int))]
  138. public int gold
  139. {
  140. get { return _gold; }
  141. set { _gold = value; }
  142. }
  143. private int _diamond = default(int);
  144. [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"diamond", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  145. [global::System.ComponentModel.DefaultValue(default(int))]
  146. public int diamond
  147. {
  148. get { return _diamond; }
  149. set { _diamond = value; }
  150. }
  151. private string _show = "";
  152. /// <summary>
  153. /// 空串表示不需要特效
  154. /// </summary>
  155. [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"show", DataFormat = global::ProtoBuf.DataFormat.Default)]
  156. [global::System.ComponentModel.DefaultValue("")]
  157. public string show
  158. {
  159. get { return _show; }
  160. set { _show = value; }
  161. }
  162. private global::ProtoBuf.IExtension extensionObject;
  163. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  164. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  165. }
  166. //---------------------------------------------------------------------------------------
  167. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"InteractConfigResponse")]
  168. public partial class InteractConfigResponse : global::ProtoBuf.IExtensible
  169. {
  170. public InteractConfigResponse() {}
  171. private int _s2c_code;
  172. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  173. public int s2c_code
  174. {
  175. get { return _s2c_code; }
  176. set { _s2c_code = value; }
  177. }
  178. private string _s2c_msg = "";
  179. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  180. [global::System.ComponentModel.DefaultValue("")]
  181. public string s2c_msg
  182. {
  183. get { return _s2c_msg; }
  184. set { _s2c_msg = value; }
  185. }
  186. private readonly global::System.Collections.Generic.List<pomelo.area.InteractConfig> _s2c_data = new global::System.Collections.Generic.List<pomelo.area.InteractConfig>();
  187. [global::ProtoBuf.ProtoMember(3, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
  188. public global::System.Collections.Generic.List<pomelo.area.InteractConfig> s2c_data
  189. {
  190. get { return _s2c_data; }
  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. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"InteractTimesRequest")]
  198. public partial class InteractTimesRequest : global::ProtoBuf.IExtensible
  199. {
  200. public InteractTimesRequest() {}
  201. private global::ProtoBuf.IExtension extensionObject;
  202. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  203. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  204. }
  205. //---------------------------------------------------------------------------------------
  206. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"InteractTimes")]
  207. public partial class InteractTimes : global::ProtoBuf.IExtensible
  208. {
  209. public InteractTimes() {}
  210. private int _type;
  211. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  212. public int type
  213. {
  214. get { return _type; }
  215. set { _type = value; }
  216. }
  217. private int _times = default(int);
  218. /// <summary>
  219. /// 剩余次数
  220. /// </summary>
  221. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"times", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  222. [global::System.ComponentModel.DefaultValue(default(int))]
  223. public int times
  224. {
  225. get { return _times; }
  226. set { _times = value; }
  227. }
  228. private global::ProtoBuf.IExtension extensionObject;
  229. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  230. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  231. }
  232. //---------------------------------------------------------------------------------------
  233. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"InteractTimesResponse")]
  234. public partial class InteractTimesResponse : global::ProtoBuf.IExtensible
  235. {
  236. public InteractTimesResponse() {}
  237. private int _s2c_code;
  238. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  239. public int s2c_code
  240. {
  241. get { return _s2c_code; }
  242. set { _s2c_code = value; }
  243. }
  244. private string _s2c_msg = "";
  245. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  246. [global::System.ComponentModel.DefaultValue("")]
  247. public string s2c_msg
  248. {
  249. get { return _s2c_msg; }
  250. set { _s2c_msg = value; }
  251. }
  252. private readonly global::System.Collections.Generic.List<pomelo.area.InteractTimes> _s2c_data = new global::System.Collections.Generic.List<pomelo.area.InteractTimes>();
  253. [global::ProtoBuf.ProtoMember(3, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
  254. public global::System.Collections.Generic.List<pomelo.area.InteractTimes> s2c_data
  255. {
  256. get { return _s2c_data; }
  257. }
  258. private int _s2c_charm = default(int);
  259. /// <summary>
  260. /// 魅力值
  261. /// </summary>
  262. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"s2c_charm", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  263. [global::System.ComponentModel.DefaultValue(default(int))]
  264. public int s2c_charm
  265. {
  266. get { return _s2c_charm; }
  267. set { _s2c_charm = 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. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ReceiveInteractPush")]
  275. public partial class ReceiveInteractPush : global::ProtoBuf.IExtensible
  276. {
  277. public ReceiveInteractPush() {}
  278. private int _s2c_code;
  279. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  280. public int s2c_code
  281. {
  282. get { return _s2c_code; }
  283. set { _s2c_code = value; }
  284. }
  285. private int _id = default(int);
  286. /// <summary>
  287. /// 交互类型id
  288. /// </summary>
  289. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  290. [global::System.ComponentModel.DefaultValue(default(int))]
  291. public int id
  292. {
  293. get { return _id; }
  294. set { _id = value; }
  295. }
  296. private string _sendPlayerName = "";
  297. /// <summary>
  298. /// 发送的玩家名称
  299. /// </summary>
  300. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"sendPlayerName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  301. [global::System.ComponentModel.DefaultValue("")]
  302. public string sendPlayerName
  303. {
  304. get { return _sendPlayerName; }
  305. set { _sendPlayerName = value; }
  306. }
  307. private string _show = "";
  308. /// <summary>
  309. /// 特效
  310. /// </summary>
  311. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"show", DataFormat = global::ProtoBuf.DataFormat.Default)]
  312. [global::System.ComponentModel.DefaultValue("")]
  313. public string show
  314. {
  315. get { return _show; }
  316. set { _show = value; }
  317. }
  318. private global::ProtoBuf.IExtension extensionObject;
  319. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  320. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  321. }
  322. }