using System; using System.Reflection; using KKSG; using XMainClient.UI; using XMainClient.UI.UICommon; using XUtliPoolLib; namespace XMainClient { internal class Process_RpcC2G_ResetSkill { public static void OnReply(ResetSkillArg oArg, ResetSkillRes oRes) { bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; if (flag) { string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; XSingleton.singleton.OnGetInvalidRequest(fullName); } else { bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; if (flag2) { bool flag3 = oArg.resetType == ResetType.RESET_PROFESSION; if (flag3) { XSingleton.singleton.XPlayerData.Profession = oRes.prof; XEntity entity = XSingleton.singleton.GetEntity(XSingleton.singleton.XPlayerData.RoleID); bool flag4 = entity != null && entity.Attributes != null; if (flag4) { entity.Attributes.Outlook.SetProfType(XSingleton.singleton.XPlayerData.TypeID); entity.Attributes.Outlook.CalculateOutLookFashion(); XEquipChangeEventArgs @event = XEventPool.GetEvent(); @event.Firer = XSingleton.singleton.Player; XSingleton.singleton.FireEvent(@event); } } bool flag5 = DlgBase.singleton.LastSelectPromote > 1; if (flag5) { DlgBase.singleton.LastSelectPromote = 1; } XSkillTreeDocument specificDocument = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); specificDocument.SkillRefresh(true, true); } else { XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); } } } public static void OnTimeout(ResetSkillArg oArg) { } } }