using Fiesta.Game.Networking.PacketTypes;
using Fiesta.Networking.Packets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Login.Players.Networking.Packets.User.Out
{
	[PacketType(USER.LOGINFAIL_ACK)]
	public class LoginError : OutPacket
	{
		public enum Error : UInt16
		{
			UnknownError = 0x42,
			DatabaseError = 0x43,
			AuthFailed = 0x44,
			InvalidIDOrPassword = 0x45,
			DatabaseError2 = 0x46,
			Blocked = 0x47,
			WorldServersDownForMaintenance = 0x48,
			TimedOut = 0x49,
			LoginFailed = 0x4a,
			AcceptAgreement = 0x4b
		}

		public LoginError(Error error) : base()
		{
			WriteUInt16((UInt16)error);
		}
	}
}