summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs55
1 files changed, 55 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs
new file mode 100644
index 00000000..c8f37c18
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs
@@ -0,0 +1,55 @@
+using System;
+using System.Reflection;
+using KKSG;
+using XMainClient.UI;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class Process_RpcC2M_QueryResWar
+ {
+ public static void OnReply(QueryResWarArg oArg, QueryResWarRes oRes)
+ {
+ bool flag = oRes == null;
+ if (flag)
+ {
+ XSingleton<UiUtility>.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00");
+ }
+ else
+ {
+ bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST;
+ if (flag2)
+ {
+ string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName;
+ XSingleton<UiUtility>.singleton.OnGetInvalidRequest(fullName);
+ }
+ else
+ {
+ bool flag3 = oRes.error > ErrorCode.ERR_SUCCESS;
+ if (flag3)
+ {
+ XSingleton<UiUtility>.singleton.ShowSystemTip(oRes.error, "fece00");
+ }
+ else
+ {
+ bool flag4 = oArg.paramSpecified && oArg.param == QueryResWarEnum.RESWAR_FLOWAWARD;
+ if (flag4)
+ {
+ DlgBase<GuildMineRewardView, GuildMineRewardBehaviour>.singleton.SetRewardInfo(oRes);
+ }
+ else
+ {
+ XGuildMineMainDocument specificDocument = XDocuments.GetSpecificDocument<XGuildMineMainDocument>(XGuildMineMainDocument.uuID);
+ specificDocument.SetAllInfo(oArg, oRes);
+ }
+ }
+ }
+ }
+ }
+
+ public static void OnTimeout(QueryResWarArg oArg)
+ {
+ }
+ }
+}