From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../PTC/Process/Process_PtcM2C_MSErrorNotify.cs | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs new file mode 100644 index 00000000..48635efb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs @@ -0,0 +1,43 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_MSErrorNotify + { + public static void Process(PtcM2C_MSErrorNotify roPtc) + { + ErrorCode errorno = (ErrorCode)roPtc.Data.errorno; + if (errorno != ErrorCode.ERR_VERSION_FAILED) + { + if (errorno != ErrorCode.ERR_TEAM_LEADER_NOTHELPER) + { + if (errorno != ErrorCode.ERR_AUCT_AUCTOVER) + { + bool istip = roPtc.Data.istip; + if (istip) + { + XSingleton.singleton.ShowSystemTip((ErrorCode)roPtc.Data.errorno, "fece00"); + } + else + { + XSingleton.singleton.ShowErrorCode((ErrorCode)roPtc.Data.errorno); + } + } + else + { + XSingleton.singleton.ShowSystemTip((ErrorCode)roPtc.Data.errorno, "fece00"); + AuctionHouseDocument specificDocument = XDocuments.GetSpecificDocument(AuctionHouseDocument.uuID); + specificDocument.QueryRefreshUI(); + } + } + else + { + XSingleton.singleton.ShowSystemTip((ErrorCode)roPtc.Data.errorno, "fece00"); + } + } + } + } +} -- cgit v1.1-26-g67d0