Handler.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. local FuwenLogic = require("fuwen.FuwenLogic")
  2. local BingshuLogic = require("fuwen.BingshuLogic")
  3. function CG_FUWEN_PUTON(human,msg)
  4. FuwenLogic.putOn(human, msg.heroID, msg.heroIndex, msg.fuwenIndex,msg.pos,nil)
  5. end
  6. function CG_FUWEN_PUTOFF(human,msg)
  7. FuwenLogic.putOff(human, msg.heroID, msg.heroIndex, msg.pos, nil)
  8. end
  9. function CG_FUWEN_SMELT_VAL_QUERY(human)
  10. FuwenLogic.fuwenSmeltValQuery(human)
  11. end
  12. function CG_FUWEN_HECHENG_QUERY(human,msg)
  13. FuwenLogic.fuwenHechengQuery(human,msg.fuwenID,msg.fuwenCnt)
  14. end
  15. function CG_FUWEN_HECHENG(human,msg)
  16. FuwenLogic.fuwenHechengDo(human,msg.fuwenIndexList)
  17. end
  18. function CG_FUWEN_FENJIE(human,msg)
  19. FuwenLogic.fuwenFenjieDo(human,msg.fuwenID,msg.fuwenIndex)
  20. end
  21. function CG_FUWEN_EXCHANGE(human)
  22. FuwenLogic.fuwenExhcange(human)
  23. end
  24. function CG_FUWEN_REFRESH_QUERY(human,msg)
  25. FuwenLogic.fuwenRefreshQuery(human,msg.fuwenID,msg.fuwenIndex,msg.pos,msg.heroID,msg.heroIndex)
  26. end
  27. function CG_FUWEN_REFRESH_DO(human,msg)
  28. FuwenLogic.fuwenRefreshDo(human,msg.fuwenID,msg.fuwenIndex,msg.heroID,msg.heroIndex,msg.pos)
  29. end
  30. function CG_FUWEN_RARE_SKILL_QUERY(human,msg)
  31. FuwenLogic.fuwenRareSkillQuery(human,msg.type)
  32. end
  33. function CG_FUWEN_REFRESH_SAVE(human,msg)
  34. FuwenLogic.fuwenRefreshSave(human,msg.fuwenID,msg.fuwenIndex,msg.pos,msg.heroID,msg.heroIndex)
  35. end
  36. function CG_FUWEN_EXCHANGE_QUERY(human)
  37. FuwenLogic.fuwenExchangeQuery(human)
  38. end
  39. function CG_FUWEN_UNLOCK_GRID(human,msg)
  40. --FuwenLogic.fuwenGridUnlock(human,msg.heroID,msg.heroIndex,msg.pos)
  41. end
  42. function CG_FUWEN_ATTR_QUERY(human, msg)
  43. FuwenLogic.CG_FUWEN_ATTR_QUERY(human,msg.fuwenID)
  44. end
  45. function CG_FUWEN_REFINE_QUERY(human,msg)
  46. FuwenLogic.fuwenRefineQuery(human,msg.fuwenID,msg.fuwenIndex,msg.pos,msg.heroID,msg.heroIndex)
  47. end
  48. function CG_FUWEN_REFINE_DO(human,msg)
  49. FuwenLogic.fuwenRefineDo(human,msg.fuwenID,msg.fuwenIndex,msg.pos,msg.heroID,msg.heroIndex)
  50. end
  51. function CG_BINGSHU_QUERY(human, msg)
  52. BingshuLogic.sendQuery(human, msg.heroID, msg.heroIndex)
  53. end
  54. function CG_BINGSHU_LEARN_LIST(human, msg)
  55. BingshuLogic.sendLearnList(human, msg.heroID, msg.heroIndex, msg.index)
  56. end
  57. function CG_BINGSHU_LEARN(human, msg)
  58. BingshuLogic.learnSkill(human, msg.heroID, msg.heroIndex, msg.index, msg.skillID)
  59. end
  60. function CG_BINGSHU_LEVELUP_QUERY(human, msg)
  61. BingshuLogic.sendLevelUpQuery(human, msg.heroID, msg.heroIndex, msg.index)
  62. end
  63. function CG_BINGSHU_LEVELUP(human, msg)
  64. BingshuLogic.levelUp(human, msg.heroID, msg.heroIndex, msg.index)
  65. end
  66. function CG_BINGSHU_FORGET(human, msg)
  67. BingshuLogic.forget(human, msg.heroID, msg.heroIndex, msg.index)
  68. end
  69. function CG_FUWEN_REFINE_LIST_QUERY(human)
  70. FuwenLogic.sendFuwenRefineList(human)
  71. end
  72. function CG_FUWEN_REFINE_PREVIEW_QUERY(human)
  73. FuwenLogic.fuwenRefinePreview(human)
  74. end
  75. function CG_FUWEN_GET_WAY_QUERY(human)
  76. FuwenLogic.sendFuwenGetWay(human)
  77. end