ShopService.cs 796 B

123456789101112131415161718192021222324252627282930313233
  1. using FL.Network;
  2. using XGame.Framework.Data;
  3. using XGame.Framework.Network;
  4. namespace FL.Data
  5. {
  6. public class ShopService : DataSingleton<ShopService>
  7. {
  8. #region 新接口
  9. //进入商店
  10. public void RequestShopInto()
  11. {
  12. var param = new ShopIntoRequest() { };
  13. NetModule.Request(param);
  14. }
  15. //普通商店购买
  16. public void RequestShopBuy(int id)
  17. {
  18. var param = new ShopBuyRequest() { id = id };
  19. NetModule.Request(param);
  20. }
  21. //人民币购买
  22. public void RequestShopRmbBuy(int id, int daibi)
  23. {
  24. var param = new ShopRmbBuyRequest() { id = id, daibi = daibi };
  25. NetModule.Request(param);
  26. }
  27. #endregion
  28. }
  29. }