12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System.Collections.Generic;
- using FL.Network;
- using UnityEngine;
- using XGame.Framework.Data;
- using XGame.Framework.Network;
- namespace FL.Data
- {
- public class EpigraphService : DataSingleton<EpigraphService>
- {
- public void RequestEpiInto()
- {
- NetModule.Request(new MingwenIntoRequest());
- }
- public void UpdateEpiData(List<EpigraphAttributes> list)
- {
- EpigraphData.Instance.SetEpiInfo(list);
- EventSingle.Instance.Notify(EventDefine.EpigraphHaveInfoUpdate);
- }
- /// <summary>
- /// 升星
- /// </summary>
- /// <param name="id">铭文id</param>
- public void RequestEpiStarUp(int id)
- {
- var param = new MingwenUpStarRequest() { sbId = id };
- NetModule.Request(param);
- }
- /// <summary>
- /// 替换铭文
- /// </summary>
- /// <param name="sbid">要镶嵌铭文的圣兵</param>
- /// <param name="mwid">要镶嵌的铭文id</param>
- public void RequestEpiInset(int sbid, int mwid)
- {
- var param = new ShengbingBindingRequest() { sbId = sbid, mwId = mwid };
- NetModule.Request(param);
- }
- }
- }
|