EpigraphService.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 RequestJibanRwdGet(int rwdId)
  46. {
  47. var param = new MingwenUnlockJibanRequest() { jiban = rwdId };
  48. NetModule.Request(param);
  49. }
  50. public void RequestJibanRwdGetAll(int collectId)
  51. {
  52. var param = new MingwenUnlockJibanAllRequest() { collectId = collectId };
  53. NetModule.Request(param);
  54. }
  55. public void OpenUpMode(int mwId)
  56. {
  57. EpigraphData.Instance.UpModeSelect = mwId;
  58. EventSingle.Instance.Notify(EventDefine.EpigraphOpenUpMode, mwId);
  59. }
  60. public void FinishUpMode()
  61. {
  62. EpigraphData.Instance.UpModeSelect = 0;
  63. EventSingle.Instance.Notify(EventDefine.EpigraphFinishUpMode);
  64. }
  65. }
  66. }