using FL.Network; using XGame.Framework.Data; using XGame.Framework.Network; namespace FL.Data { public class PlayerService : DataSingleton { /// /// 请求身上穿戴的装备信息 /// public void SendToEquipInto() { if (EquipData.Instance.IsWearEquipEmpty()) { NetModule.Request(new EquipIntoEquipRequest() { }); } } /// /// 请求转职 /// /// public void SendToTransfer(int jobId) { var msg = new JobClassChangeRequest() { classId = jobId }; NetModule.Request(msg); } /// /// 请求重置转职 /// public void SendToResetJob() { NetModule.Request(new JobClassResetRequest() { }); } /// /// 请求随机觉醒(激活)符文 /// public void SendToWakeupRune() { NetModule.Request(new JobClassRuneActivateRequest() { }); } /// /// 请求提升某个符文的等级 /// /// /// public void SendToUpgradeRune(int runeId, int addLv) { var msg = new JobClassSlotLvUpRequest() { id = runeId, addLv = addLv }; NetModule.Request(msg); } /// /// 请求更换印记符文类型 /// /// public void SendToChangeRuneType(int planIndex, int slotId, int runeType) { var msg = new JobClassRuneChangeRequest() { planId = planIndex, slotId = slotId, type = runeType }; NetModule.Request(msg); } /// /// 请求更换符文方案 /// /// public void SendToChangePlanIndex(int planIndex) { var msg = new JobClassChangePlanRequest() { planId = planIndex.ToString(), }; NetModule.Request(msg); } /// /// 请求重置当前方案 /// public void SendToResetPlan() { NetModule.Request(new JobClassResetPlanRequest() { }); } /// /// 请求修改符文方案名字 /// /// /// public void SendToAlterPlanName(string name, int planIndex) { var msg = new JobClassRunePlanNameRequest() { str = name, planId = planIndex.ToString(), }; NetModule.Request(msg); } /// /// 请求升级 /// public void SendToUpgradeLv() { NetModule.Request(new UserUplevelRequest() { }); } } }