summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.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_chat.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs57
1 files changed, 57 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs
new file mode 100644
index 00000000..aaa1ab20
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs
@@ -0,0 +1,57 @@
+using System;
+using System.Reflection;
+using KKSG;
+using XMainClient.UI;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class Process_RpcC2M_chat
+ {
+ public static void OnReply(ChatArg oArg, ChatRes oRes)
+ {
+ bool flag = oRes == null;
+ if (flag)
+ {
+ XSingleton<UiUtility>.singleton.ShowErrorCode(ErrorCode.ERR_FAILED);
+ }
+ else
+ {
+ bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST;
+ if (flag2)
+ {
+ string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName;
+ XSingleton<UiUtility>.singleton.OnGetInvalidRequest(fullName);
+ }
+ else
+ {
+ bool flag3 = oRes.errorcode == ErrorCode.ERR_SUCCESS;
+ if (!flag3)
+ {
+ bool flag4 = oRes.errorcode == ErrorCode.ERR_CHAT_TIMELIMIT;
+ if (flag4)
+ {
+ XSingleton<UiUtility>.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("ERR_CHAT_TIMELIMIT"), XSingleton<UiUtility>.singleton.TimeDuarationFormatString((int)oRes.cooldown, 5)), "fece00");
+ }
+ else
+ {
+ bool flag5 = oRes.errorcode == ErrorCode.ERR_BLACK_INOTHER;
+ if (flag5)
+ {
+ XSingleton<UiUtility>.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("ERR_BLACK_INOTHER"), new object[0]), "fece00");
+ }
+ else
+ {
+ XSingleton<UiUtility>.singleton.ShowSystemTip(oRes.errorcode, "fece00");
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public static void OnTimeout(ChatArg oArg)
+ {
+ }
+ }
+}