using System; using System.Collections.Generic; using UnityEngine; namespace TKS.OutGame { /// /// 영웅 「정보」 화면 표 3장(2026-11-20 개발요청_영웅정보 §1) — hero_info_stats(능력치 칸 순서 · 구역 Base/Battle · 보여 주기 BaseBonus/Total/Value) · /// hero_info_sources(성장 내역 줄 · 바로가기) · hero_chronicle(열전 · 연도 · 제목 · 문장 · 연의 전기 편 · 별칭). 임포트 = TKS/Import Hero Info → Resources/OutGame/HeroInfoDb.asset. /// public class HeroInfoDb : ScriptableObject { [Serializable] public class StatRow { public int order; public string key = ""; public string nameKo = ""; public string section = ""; public string show = ""; } [Serializable] public class SourceRow { public int order; public string key = ""; public string nameKo = ""; public string go = ""; } [Serializable] public class Event { public string hero = ""; public int order; public string year = ""; public string title = ""; public string text = ""; public string scenario = ""; public string epithet = ""; } public List stats = new List(); public List sources = new List(); public List chronicle = new List(); public List ChronicleOf(string hero) { var l = chronicle.FindAll(e => e.hero == hero); l.Sort((a, b) => a.order.CompareTo(b.order)); return l; } /// 별칭(그 영웅 열전 첫 줄 s_epithet · 없으면 ""). public string EpithetOf(string hero) { var l = ChronicleOf(hero); return l.Count > 0 ? l[0].epithet : ""; } } }