12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- 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 RequestJibanRwdGet(int rwdId)
- {
- var param = new MingwenUnlockJibanRequest() { jiban = rwdId };
- NetModule.Request(param);
- }
- public void RequestJibanRwdGetAll(int collectId)
- {
- var param = new MingwenUnlockJibanAllRequest() { collectId = collectId };
- NetModule.Request(param);
- }
- 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);
- }
- }
- }
|