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; } }
public static void RegisterEvent(EventObject Event) { EventQueue.Add(Event); }
/// <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> 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; case 0x03: Event = new EventObject(EventCodes.AUTHENTICATION_FAILURE); EventSink.RegisterEvent(Event); break; } Client.Disconnect(); }
public static void RegisterEvent(EventObject Event) { EventQueue.Add(Event); }