From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Process/Process_RpcC2G_GetSpActivityReward.cs | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs new file mode 100644 index 00000000..baf5492a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs @@ -0,0 +1,58 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetSpActivityReward + { + public static void OnReply(GetSpActivityRewardArg oArg, GetSpActivityRewardRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + int num = XFastEnumIntEqualityComparer.ToInt(ActivityType.BigPrize); + bool flag2 = oArg.actid == 1u; + if (flag2) + { + XCarnivalDocument specificDocument = XDocuments.GetSpecificDocument(XCarnivalDocument.uuID); + specificDocument.RespClaim(oArg.taskid); + } + else + { + bool flag3 = oArg.actid == (uint)num; + if (flag3) + { + XAncientDocument specificDocument2 = XDocuments.GetSpecificDocument(XAncientDocument.uuID); + specificDocument2.ResClaim(); + } + else + { + bool flag4 = oArg.actid == WeekEndNestDocument.Doc.m_actId; + if (flag4) + { + WeekEndNestDocument.Doc.OnGetReward(oRes); + } + else + { + bool flag5 = oArg.actid == 5u; + if (flag5) + { + XBackFlowDocument.Doc.OnGetReward(oArg, oRes); + } + } + } + } + } + else + { + XSingleton.singleton.ShowErrorCode(oRes.errorcode); + } + } + + public static void OnTimeout(GetSpActivityRewardArg oArg) + { + } + } +} -- cgit v1.1-26-g67d0