Proto.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. local HeroSimple = require("hero.Proto").HeroSimple
  2. local HeroDynamic = require("hero.Proto").HeroDynamic
  3. local HeroStatic = require("hero.Proto").HeroStatic
  4. local UpStarCond = require("hero.Proto").UpStarCond
  5. local ItemData = require("bag.Proto").ItemData
  6. -- Ӣ�ۺϳɲ�ѯ
  7. CG_HECHENG_QUERY = {
  8. {"camp", 1, "byte"}, -- ��Ӫ
  9. }
  10. HECHENG_DATA = {
  11. {"heroSimple", 1, HeroSimple}, -- Ӣ����Ϣ
  12. {"conditionList", 4, UpStarCond}, -- ��������
  13. }
  14. GC_HECHENG_QUERY = {
  15. {"camp", 1, "byte"}, -- ��Ӫ
  16. {"list", 10, HECHENG_DATA}, -- �ϳ���Ϣ
  17. {"isEnd", 1, "byte"}, --
  18. }
  19. GC_HECHENG_REDS = {
  20. {"reds", 6, "byte"}, -- ����б�
  21. }
  22. -- Ӣ�۷ֽ�
  23. CG_FENJIE = {
  24. {"type", 1, "byte"}, -- 1Ԥ�� 2�ֽ�
  25. {"heroIDList", 12, "int"}, -- Ӣ��ID�б�
  26. {"heroIndexList", 12, "int"}, -- Ӣ�������б�
  27. }
  28. -- Ӣ����Ƭ�ֽ�
  29. CG_HERO_CHIP_FENJIE = {
  30. {"type", 1, "byte"}, -- 1Ԥ�� 2�ֽ�
  31. {"itemIdList", 12, "int"}, -- ��ƷID�б�
  32. {"itemIdCntList", 12, "int"}, -- ��Ʒ�����б�
  33. }
  34. GC_FENJIE = {
  35. {"type", 1, "byte"},
  36. {"itemList", 64, ItemData}, -- �����Ʒ�б�
  37. }
  38. -- װ���ϳɰ�����ѯ
  39. CG_EQUIP_HECHENG_DETAIL_QUERY = {
  40. }
  41. GC_EQUIP_HECHENG_DETAIL_QUERY = {
  42. {"desc", 1, "string"}, -- ����
  43. }
  44. EquipHechengData = {
  45. {"id", 1, "int"},
  46. {"itemData", 2, ItemData}, -- �����Լ��ϳ�װ��
  47. {"cnt", 1, "int"}, -- ����
  48. {"need", 2, ItemData}, -- ����
  49. }
  50. -- ��ѯװ���ϳ���Ϣ
  51. CG_EQUIP_HECHENG_QUERY = {
  52. {"pos", 1, "byte"}, -- ��λ
  53. }
  54. GC_EQUIP_HECHENG_QUERY = {
  55. {"pos", 1, "byte"}, -- ��λ
  56. {"list", 16, EquipHechengData}, -- װ���б�
  57. {"dot", 5, "byte"}, -- ����б�
  58. }
  59. -- �ϳ�װ��
  60. CG_EQUIP_HECHENG_DO = {
  61. {"id", 1, "int"}, -- �ϳ�ID
  62. {"indexList", 5, "int"}, -- �ϳ� �õ�װ���±�
  63. }
  64. -- �ϳ�װ��
  65. GC_EQUIP_HECHENG_DO = {
  66. {"item", 3, ItemData}, -- ��Ʒ����
  67. }
  68. -- ��ѯװ���ϳɼ�¼
  69. EquipLogs = {
  70. {"equip",1,ItemData}, -- �ϳ�װ��
  71. {"cost",2,ItemData}, -- ���ѽ��
  72. {"time",1,"int"}, -- �ϳ�ʱ��
  73. }
  74. CG_EQUIP_HECHENG_LOG_QUERY = {
  75. }
  76. GC_EUQIP_HECHENG_LOG_QUERY = {
  77. {"equipLogs",50,EquipLogs}, -- �ϳ���־�б�
  78. }