Server.Network.PacketHandlers.AccountLogin_ReplyAck C# (CSharp) Méthode

AccountLogin_ReplyAck() public static méthode

public static AccountLogin_ReplyAck ( Server.Network.NetState state ) : void
state Server.Network.NetState
Résultat void
        public static void AccountLogin_ReplyAck( NetState state )
        {
            ServerListEventArgs e = new ServerListEventArgs( state, state.Account );

            EventSink.InvokeServerList( e );

            if ( e.Rejected )
            {
                state.Account = null;
                state.Send( new AccountLoginRej( ALRReason.BadComm ) );
                state.Dispose();
            }
            else
            {
                ServerInfo[] info = e.Servers.ToArray();

                state.ServerInfo = info;

                state.Send( new AccountLoginAck( info ) );
            }
        }
PacketHandlers