123456789101112131415161718192021222324252627282930313233 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using GFGGame;
- namespace ET
- {
- public class A2C_DisconnectHandler : AMHandler<A2C_Disconnect>
- {
- protected override async ETTask Run(Session session, A2C_Disconnect message)
- {
- switch(message.Error)
- {
- case ErrorCode.ERR_loginTimeOut:
- Alert.Show("登录超时,请重新登录!")
- .SetLeftButton(true, "返回登录", (obj) =>
- {
- GameController.QuitToLoginView(false);
- });
- break;
- case ErrorCode.ERR_loginByOther:
- case ErrorCode.ERR_OtherAccountLogin:
- Alert.Show("账号已在其他地方登录!");
- break;
- default:
- Alert.Show("您已被迫下线!");
- break;
- }
- await ETTask.CompletedTask;
- }
- }
- }
|