using System;
using UnityEngine;
using Cute;
using Wizard;

// PASS-8/Phase-1 STUB: 1,055-line card-pack-open animation controller. Held as
// `GachaUI._cardPackManager` field but never constructed anywhere. Nested type
// `GachaMaskDark` is referenced from Wizard/Master.cs (`Dictionary<int, CardPackManager.
// GachaMaskDark> GachaMaskDarkDic`) — kept as-is (CSV parser for pack mask data;
// small and self-contained). Everything else stripped.
public class CardPackManager : MonoBehaviour
{
    public bool IsSkipped { get; private set; }

    public void Init(bool isAutoOpen, CardDetailUI cardDetail, UIManager.ViewScene nextScene, bool isCoutainSpecialCard, Action callback) { }
    public void StartInstantiateCardPack(PackConfig packConfig) { }

    public class GachaMaskDark
    {
        public int PackId;
        public Rect UvRect;
        public Color Color;

        public GachaMaskDark(string[] columns)
        {
            int num = 0;
            PackId = int.Parse(columns[num]);
            num++;
            UvRect = new Rect(float.Parse(columns[num]), float.Parse(columns[num + 1]), float.Parse(columns[num + 2]), float.Parse(columns[num + 3]));
            num += 4;
            Color = new Color(float.Parse(columns[num]), float.Parse(columns[num + 1]), float.Parse(columns[num + 2]), float.Parse(columns[num + 3]));
        }
    }
}
