summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs
new file mode 100644
index 00000000..3a75697e
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Reflection;
+using KKSG;
+using XMainClient.UI;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class Process_RpcC2G_GetNewZoneBenefit
+ {
+ public static void OnReply(GetNewZoneBenefitArg oArg, GetNewZoneBenefitRes oRes)
+ {
+ bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST;
+ if (flag)
+ {
+ string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName;
+ XSingleton<UiUtility>.singleton.OnGetInvalidRequest(fullName);
+ }
+ else
+ {
+ bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS;
+ if (flag2)
+ {
+ XSingleton<UiUtility>.singleton.ShowSystemTip(oRes.result, "fece00");
+ }
+ else
+ {
+ XBackFlowDocument.Doc.OnGetNewZoneBenefit(oRes);
+ }
+ }
+ }
+
+ public static void OnTimeout(GetNewZoneBenefitArg oArg)
+ {
+ }
+ }
+}