Пример #1
0
 public static void RegisterEvent(EventObject Event)
 {
     EventQueue.Add(Event);
 }
        public static void OnLotPurchaseFailed(NetworkClient Client, ProcessedPacket Packet)
        {
            EventObject Event;

            switch(Packet.ReadByte())
            {
                case 0x00:
                    Event = new EventObject(EventCodes.TRANSACTION_RESULT);
                    EventSink.RegisterEvent(Event);
                    break;
            }
        }
        /// <summary>
        /// Occurs when the client was not authenticated by the loginserver.
        /// Called by UILoginDialog.cs.
        /// </summary>
        /// <param name="Client">The client that received the packet.</param>
        /// <param name="Packet">The packet that was received.</param>
        /// <param name="Screen">A UIScreen instance on which to display a messagebox to inform the player of the
        ///                      failure state.</param>
        public static void OnLoginFailResponse(ref NetworkClient Client, ProcessedPacket Packet)
        {
            EventObject Event;

            switch (Packet.ReadByte())
            {
                case 0x01:
                    Event = new EventObject(EventCodes.BAD_USERNAME);
                    EventSink.RegisterEvent(Event);
                    break;
                case 0x02:
                    Event = new EventObject(EventCodes.BAD_PASSWORD);
                    EventSink.RegisterEvent(Event);
                    break;
            }

            Client.Disconnect();
        }
Пример #4
0
 public static void RegisterEvent(EventObject Event)
 {
     EventQueue.Add(Event);
 }