using Campofinale.Network;
using Campofinale.Protocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using static Campofinale.Resource.ResourceManager;

namespace Campofinale.Packets.Sc
{
    public class PacketScSyncAllBloc : Packet
    {
        
        public PacketScSyncAllBloc(Player client) {

            ScSyncAllBloc allblocks = new()
            {
                Blocs =
                {

                },
                Shops =
                {
                    new ShopInfo()
                    {
                        Shopid="bloc01_shop",
                    },
                    new ShopInfo()
                    {
                        Shopid="bloc02_shop",
                    },
                    new ShopInfo()
                    {
                        Shopid="temp_shop",
                        Type=1,
                    }
                }
            };
            foreach (var bloc in blocDataTable)
            {
                allblocks.Blocs.Add(new BlocInfo()
                {
                    Exp = 0,
                    Level = 1,
                    Blocid = bloc.Value.blocId,
                    
                });
            }
            
            SetData(ScMsgId.ScSyncAllBloc, allblocks);
        }

    }
}
