EpigraphService.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using FL.Network;
  2. using XGame.Framework.Data;
  3. using XGame.Framework.Network;
  4. namespace FL.Data
  5. {
  6. public class EpigraphService : DataSingleton<EpigraphService>
  7. {
  8. public void RequestEpiInto()
  9. {
  10. NetModule.Request(new MingwenIntoRequest());
  11. }
  12. /// <summary>
  13. /// 升星
  14. /// </summary>
  15. /// <param name="id">铭文id</param>
  16. public void RequestEpiStarUp(int id)
  17. {
  18. var param = new MingwenUpStarRequest() { sbId = id };
  19. NetModule.Request(param);
  20. }
  21. /// <summary>
  22. /// 替换铭文
  23. /// </summary>
  24. /// <param name="sbid">要镶嵌铭文的圣兵</param>
  25. /// <param name="mwid">要镶嵌的铭文id</param>
  26. public void RequestEpiInset(int sbid, int mwid)
  27. {
  28. var param = new ShengbingBindingRequest() { sbId = sbid, mwId = mwid };
  29. NetModule.Request(param);
  30. }
  31. /// <summary>
  32. /// 铭文一件上阵
  33. /// </summary>
  34. public void RequestEpiWearAll()
  35. {
  36. NetModule.Request(new MingwenWearAllRequest());
  37. }
  38. /// <summary>
  39. /// 铭文一键强化
  40. /// </summary>
  41. public void RequestEpiStrongAll()
  42. {
  43. NetModule.Request(new MingwenStrongAllRequest());
  44. }
  45. public void OpenUpMode(int mwId)
  46. {
  47. EpigraphData.Instance.UpModeSelect = mwId;
  48. EventSingle.Instance.Notify(EventDefine.EpigraphOpenUpMode, mwId);
  49. }
  50. public void FinishUpMode()
  51. {
  52. EpigraphData.Instance.UpModeSelect = 0;
  53. EventSingle.Instance.Notify(EventDefine.EpigraphFinishUpMode);
  54. }
  55. }
  56. }