using FL.Network; using XGame.Framework.Data; using XGame.Framework.Network; namespace FL { public class MountService : DataSingleton { public int upgradeMountId { set; get; } // 请求升星的高级坐骑id public int mountStarLv { set; get; } // 高级坐骑升星前的星级 /// /// 坐骑激活功能时初始化,只需请求一次(解锁坐骑功能时请求) /// public void SendTo() { NetModule.Request(new MountMountInitRequest() { }); } /// /// 请求坐骑相关数据 /// public void SendToMountData() { NetModule.Request(new MountIntoRequest() { }); } /// /// 一键提升通用坐骑(喂养) /// public void SendToOneKeyFeedMount() { NetModule.Request(new MountTiShengAllRequest() { }); } /// /// 通用坐骑(喂养)提升 /// public void SendToFeedMount() { NetModule.Request(new MountTishengRequest() { }); } /// /// 启用高级坐骑技能 /// /// 坐骑id public void SendToEnableAdvancedSkill(int mountId) { var msg = new MountUseSkillRequest() { mountId = mountId }; NetModule.Request(msg); } /// /// 取消高级坐骑技能 /// public void SendToCancelAdvancedSkill() { NetModule.Request(new MountSkillDownRequest() { }); } /// /// 坐骑上阵(骑乘) /// /// public void SendToRideMount(int mountId) { var msg = new MountShangzhenRequest() { mountId = mountId }; NetModule.Request(msg); } /// /// 下坐骑 /// public void SendToRideDown() { NetModule.Request(new MountDownRequest() { }); } /// /// 坐骑部位一键驯养 /// public void SendToOneKeyTraining() { NetModule.Request(new MountXunyangAllRequest() { }); } /// /// 坐骑部位驯养 /// public void SendToTrainingMountPart() { NetModule.Request(new MountXunyangRequest() { }); } /// /// 请求解锁某个高级坐骑 /// /// public void SendToUnlockAdvancedMount(int mountId) { var msg = new MountAddMountRequest() { mountId = mountId }; NetModule.Request(msg); } /// /// 高级坐骑升星 /// /// public void SendToUpgradeStar(int mountId) { upgradeMountId = mountId; mountStarLv = MountData.Instance.GetAdvancedMountLv(mountId); var msg = new MountUpStarRequest() { mountId = mountId }; NetModule.Request(msg); } } }