using System.Collections.Generic;
using UnityEngine;
namespace EerieVillage.Progression
{
///
/// BT12-MVP-A 영역 placeholder 카드 풀. Inspector 영역 SkillCardPlaceholder 5~8장 등록.
/// 차기 BT12-Dev 본격 영역 = SkillRuntimeFactory 영역 활용.
///
public class SkillCardPlaceholderPool : MonoBehaviour
{
[SerializeField] List _allCards = new List();
public IReadOnlyList AllCards => _allCards;
/// 5~8장에서 무작위 3장 추출 (중복 X). 카드 영역 부족 시 가능 영역만.
public List Draw3Random()
{
var copy = new List(_allCards);
var result = new List();
int draw = Mathf.Min(3, copy.Count);
for (int i = 0; i < draw; i++)
{
int idx = Random.Range(0, copy.Count);
result.Add(copy[idx]);
copy.RemoveAt(idx);
}
return result;
}
}
}