Proto.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. local HeroSimple = require("hero.Proto").HeroSimple
  2. local RoleBase = require("role.Proto").RoleBase
  3. local ItemData = require("bag.Proto").ItemData
  4. local CombatFinishData = require("combat.Proto").CombatFinishData
  5. ReportData = {
  6. {"id", 1, "string"}, --ս����ʶ
  7. {"type", 1, "byte"}, --ս������
  8. {"atkRole", 1, RoleBase}, --���������Ϣ
  9. {"defRole", 1, RoleBase}, --�ط������Ϣ
  10. {"atkHeros", 10, HeroSimple}, --����Ӣ������
  11. {"defHeros", 10, HeroSimple}, --�ط�Ӣ������
  12. {"atkRank", 1, "short"}, -- ��������
  13. {"defRank", 1, "short"}, -- �ط�����
  14. {"atkFormation", 1, "short"}, --���ݱ�ʶ
  15. {"defFormation", 1, "short"}, --���ط����ݱ�ʶ
  16. {"round", 1, "byte"}, --�غ���
  17. {"roundMax", 1, "byte"}, --���غ���
  18. {"admire", 1, "int"}, -- ���޴���
  19. {"collect", 1, "int"}, -- �ղش���
  20. {"time", 1, "int"}, -- ս��ʱ��
  21. {"result", 1, "byte"}, -- ս�����
  22. {"isCollect", 1, "byte"}, -- �Ƿ��ղ�
  23. {"isAdmire", 1, "byte"}, -- �Ƿ����
  24. }
  25. -- ��ѯ
  26. CG_WAR_REPORT_QUERY = {
  27. {"type", 1, "byte"},
  28. {"questType", 1, "byte"}, --��ѯ�������� 1[ս������] 2[�����ղ�] 3[�ҵ�ս��]
  29. }
  30. -- ��ѯ����
  31. GC_WAR_REPORT_QUERY = {
  32. {"warReportList", 5, ReportData},
  33. {"isEnd", 1, "byte"},
  34. {"admireCnt", 1, "byte"}, --ʣ����޴���
  35. {"admireMax", 1, "byte"}, --�����޴���
  36. {"questType", 1, "byte"}, --��ѯ��������
  37. }
  38. -- �ط�
  39. CG_WAR_REPORT_PLAY_BACK = {
  40. {"type", 1, "byte"},
  41. {"id", 1, "string"},
  42. {"nServerIndex", 1, "int"},
  43. }
  44. CG_WAR_REPORT_COLLECT = {
  45. {"type", 1, "byte"},
  46. {"id", 1, "string"},
  47. {"op", 1, "byte"},
  48. }
  49. -- ����
  50. CG_WAR_REPORT_ADMIRE = {
  51. {"type", 1, "byte"},
  52. {"id", 1, "string"},
  53. }
  54. -- type=2[�ղ�] type=1 [����]
  55. GC_WAR_REPORT_OP_RESULT = {
  56. {"opType", 1, "byte"},
  57. {"id", 1, "string"},
  58. {"result", 1, "short"},
  59. }
  60. -- �鿴�˺���¼
  61. CG_WAR_REPROT_HARM = {
  62. {"type", 1, "byte"},
  63. {"id", 1, "string"},
  64. }
  65. -- �˺���¼
  66. GC_WAR_REPROT_HARM = {
  67. {"data", 1, CombatFinishData},
  68. }
  69. -- 冠军联赛录像一键点赞
  70. CG_WAR_REPROT_ADMIRE_BY_ONETOUCH= {
  71. }