Handler.lua 833 B

12345678910111213141516171819202122232425262728293031
  1. local ShopLogic = require("shop.ShopLogic")
  2. -- 查询商店物品
  3. function CG_SHOP_QUERY(human, msg)
  4. ShopLogic.query(human, msg.shopType)
  5. end
  6. -- 刷新商店物品
  7. function CG_SHOP_REFRESH(human, msg)
  8. ShopLogic.refresh(human, msg.shopType)
  9. end
  10. -- 购买物品
  11. function CG_SHOP_BUY(human, msg)
  12. ShopLogic.buy(human, msg.shopType, msg.itemID, msg.itemIndex, msg.buyCnt)
  13. end
  14. -- 查询基础商店中随机商店中记录的道具列表
  15. function CG_SHOP_RECORD_QUERY(human, msg)
  16. ShopLogic.RecordItems_Query(human)
  17. end
  18. -- 记录基础商店中随机商店中记录的道具列表
  19. function CG_SHOP_RECORD_ITEMS(human, msg)
  20. ShopLogic.RecordItems(human, msg.itemIdxStr)
  21. end
  22. -- 基础商店中随机商店中所有道具
  23. function CG_SHOP_ALL_ITEM_QUERY(human, msg)
  24. ShopLogic.AllItem_Query(human)
  25. end