OnLoginFailResponse() public static method

Occurs when the client was not authenticated by the loginserver. Called by UILoginDialog.cs.
public static OnLoginFailResponse ( NetworkClient &Client, GonzoNet.ProcessedPacket Packet ) : void
Client GonzoNet.NetworkClient The client that received the packet.
Packet GonzoNet.ProcessedPacket The packet that was received.
return void
コード例 #1
0
        public void _OnLoginFailureCity(NetworkClient Client, ProcessedPacket Packet)
        {
            Log.LogThis("Received OnLoginFailureCity!", eloglevel.info);

            if (OnLoginFailureCity != null)
            {
                UIPacketHandlers.OnLoginFailResponse(ref NetworkFacade.Client, Packet);
                OnLoginFailureCity();
            }
            else
            {
                //TODO: Error handling...
            }
        }
コード例 #2
0
 public void _OnLoginFailure(NetworkClient Client, ProcessedPacket packet)
 {
     if (OnLoginStatus != null)
     {
         UIPacketHandlers.OnLoginFailResponse(ref NetworkFacade.Client, packet);
         OnLoginStatus(new LoginEvent(EventCodes.LOGIN_RESULT)
         {
             Success = false, VersionOK = true
         });
     }
     else
     {
         //TODO: Error handling...
     }
 }