Пример #1
0
 /// <summary>
 /// 프로토콜 결과 수신
 /// ClientIoHandler -> IClientEventListener -> IUIEventListener.perform
 /// </summary>
 /// <param name="gameEvent"></param>
 public override void perform(ClientEventAbstract clientEvent) {
     //로그인 프로토콜
     if( clientEvent.GetProtocol() == Protocol.USER_LOGIN ) {
         if( clientEvent.GetHResult() == RCode.SUCESS ) {
             status = LoginStatus.SUCESS;
         } else {
             status = LoginStatus.FAIL;
         }
     //중복 로그인 프로토콜
     } else if( clientEvent.GetProtocol() == Protocol.DUPLICATE_LOGIN ) {
         status = LoginStatus.DUPLICATE_LOGIN;
     }
 }