using Fiesta.Databases.Account.StoredProcedures;
using Fiesta.Game.Networking.PacketTypes;
using Fiesta.Networking.Packets;
using Fiesta.Players.Networking;
using Login.Players.Networking.Packets.User.Out;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Villain.Networking.Packets;

namespace Login.Players.Networking.Packets.User.In
{
	public static class WorldListUpdateRequest
	{
		[PacketHandler("Player", USER.WORLD_STATUS_REQ)]
		public static void Handle(PlayerConnection client, InPacket packet)
		{
			using (WorldList worldList = new WorldList(true))
			{
				client.Send(worldList);
			}
		}
	}
}