123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- using FL.Network;
- using XGame.Framework.Data;
- using XGame.Framework.Network;
- namespace FL.Data
- {
- public class EpigraphService : DataSingleton<EpigraphService>
- {
- public void RequestEpiInto()
- {
- NetModule.Request(new MingwenIntoRequest());
- }
- /// <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);
- }
- /// <summary>
- /// 铭文一件上阵
- /// </summary>
- public void RequestEpiWearAll()
- {
- NetModule.Request(new MingwenWearAllRequest());
- }
- /// <summary>
- /// 铭文一键强化
- /// </summary>
- public void RequestEpiStrongAll()
- {
- NetModule.Request(new MingwenStrongAllRequest());
- }
- public void OpenUpMode(int mwId)
- {
- EpigraphData.Instance.UpModeSelect = mwId;
- EventSingle.Instance.Notify(EventDefine.EpigraphOpenUpMode, mwId);
- }
- public void FinishUpMode()
- {
- EpigraphData.Instance.UpModeSelect = 0;
- EventSingle.Instance.Notify(EventDefine.EpigraphFinishUpMode);
- }
- }
- }
|