From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Process_RpcC2G_CampDuelActivityOperation.cs | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs new file mode 100644 index 00000000..dcc7f0a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs @@ -0,0 +1,52 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_CampDuelActivityOperation + { + public static void OnReply(CampDuelActivityOperationArg oArg, CampDuelActivityOperationRes 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) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XCampDuelDocument.Doc.SetCampDuelData(oArg, oRes); + bool flag3 = oArg.type == 2u && XCampDuelDocument.Doc.handler != null; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("CAMPDUEL_JOIN_OK"), XCampDuelDocument.Doc.handler.CampName), "fece00"); + } + bool flag4 = oArg.type == 3u; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("CAMPDUEL_CONFIRM_OK"), oArg.arg), "fece00"); + } + bool flag5 = oArg.type == 4u || oArg.type == 5u; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("CAMPDUEL_COURAGE_OK"), oArg.arg), "fece00"); + } + } + } + } + + public static void OnTimeout(CampDuelActivityOperationArg oArg) + { + } + } +} -- cgit v1.1-26-g67d0