Proto.lua 949 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. local ItemData = require("bag.Proto").ItemData
  2. local HeroSimple = require("hero.Proto").HeroSimple
  3. tBoxInfo =
  4. {
  5. {"nType", 1, "byte"},
  6. {"tItemData", 1, ItemData},
  7. }
  8. -- 请求宝箱界面信息
  9. CG_TEEASURECHEST_QUERY =
  10. {}
  11. -- 请求宝箱界面信息回包
  12. GC_TEEASURECHEST_QUERY = {
  13. {"nNowPoint", 1, "int"},
  14. {"nNextPoint", 1, "int"},
  15. {"tList", 8, tBoxInfo},
  16. }
  17. -- 请求宝箱内奖励信息
  18. CG_TEEASURECHEST_PRIZE_QUERY =
  19. {
  20. {"nBoxType", 1, "byte"}
  21. }
  22. -- 请求宝箱内奖励信息回包
  23. GC_TEEASURECHEST_PRIZE_QUERY =
  24. {
  25. {"tItemData", 10, ItemData},
  26. }
  27. -- 请求打开宝箱
  28. CG_TEEASURECHEST_OPEN =
  29. {
  30. {"nBoxType", 1, "byte"},
  31. {"nNum", 1, "int"},
  32. }
  33. -- 请求自动打开宝箱
  34. CG_TEEASURECHEST_AUTO_OPEN =
  35. {
  36. {"nBoxType", 1, "byte"}
  37. }