EpigraphService.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System.Collections.Generic;
  2. using FL.Network;
  3. using UnityEngine;
  4. using XGame.Framework.Data;
  5. using XGame.Framework.Network;
  6. namespace FL.Data
  7. {
  8. public class EpigraphService : DataSingleton<EpigraphService>
  9. {
  10. public void RequestEpiInto()
  11. {
  12. NetModule.Request(new MingwenIntoRequest());
  13. }
  14. public void UpdateEpiData(List<EpigraphAttributes> list)
  15. {
  16. EpigraphData.Instance.SetEpiInfo(list);
  17. EventSingle.Instance.Notify(EventDefine.EpigraphHaveInfoUpdate);
  18. }
  19. /// <summary>
  20. /// 升星
  21. /// </summary>
  22. /// <param name="id">铭文id</param>
  23. public void RequestEpiStarUp(int id)
  24. {
  25. var param = new MingwenUpStarRequest() { sbId = id };
  26. NetModule.Request(param);
  27. }
  28. /// <summary>
  29. /// 替换铭文
  30. /// </summary>
  31. /// <param name="sbid">要镶嵌铭文的圣兵</param>
  32. /// <param name="mwid">要镶嵌的铭文id</param>
  33. public void RequestEpiInset(int sbid, int mwid)
  34. {
  35. var param = new ShengbingBindingRequest() { sbId = sbid, mwId = mwid };
  36. NetModule.Request(param);
  37. }
  38. }
  39. }