using System; using System.Collections.Generic; namespace TKS.OutGame { /// 결제 1건(기기 세이브 모드 = 시험 결제 · 서버 모드 = 영수증 검증 뒤 서버가 기록 — 후속). [Serializable] public class TradePay { public string product = ""; public int krw; public string at = ""; public bool test; } /// 한도가 있는 구매 기록(상품 id × 기간 키 — once · D날 · W주 · M달). [Serializable] public class TradeBuy { public string id = ""; public string period = ""; public int n; } /// 월정액 1장(끝나는 날 = 날 번호 · 그날은 포함 안 함 · 받은 마지막 날). [Serializable] public class TradeMonthly { public string id = ""; public int endDay = -1; public int lastClaimDay = -1; } /// 성장 패스 1권(구매 · 받은 칸 번호 1~25). [Serializable] public class TradePass { public string id = ""; public bool bought; public List free = new List(); public List paid = new List(); } /// 챕터 정복 패키지 1종 — openAt 빈칸 = 열리지 않고 지나감(다시 안 나옴) · closed = 다음 장 상품이 열려 닫힘 · seen = 패키지 탭에서 봄(빨간 점). [Serializable] public class TradeChapter { public string id = ""; public string openAt = ""; public bool bought; public bool closed; public bool seen; } /// 오늘의 상점 칸 1개(trade_shop_daily 의 그 칸 후보 가운데 고른 줄 · ★1 · ★2 조각 = 굴릴 때 정한 영웅). [Serializable] public class TradeSlot { public int slot; public int row = -1; public string heroId = ""; public bool bought; } [Serializable] public class TradeShop { public string day = ""; public int refreshes; public List slots = new List(); } /// 거래 상품(PD 2026-11-26 · 기획서 2판) 세이브 — 결제 이력 · 누적 금액 · 한도 · 월정액 · 패스 · 챕터 정복 · 오늘의 상점 · 광고 제거. [Serializable] public class TradeState { public int spentKrw; public List pays = new List(); public List buys = new List(); /// 첫 구매 2배를 이미 쓴 보옥 상품. public List gemFirst = new List(); public bool adFree; /// 첫 결제 「출사표」 산 날(날 번호 · −1 = 안 삼) · 받은 날 수(1~3). public int firstPayDay = -1; public int firstPayClaimed; /// 1-5 첫 클리어 뒤 로비 첫 결제 팝업을 띄웠는가(1회). public bool firstPopupShown; public List monthly = new List(); public List passes = new List(); public List chapters = new List(); public List spendClaimed = new List(); public TradeShop shop = new TradeShop(); /// 월정액 혜택 「순찰 즉시 수확 하루 1회 무료」를 쓴 날(날 번호). public int instantFreeDay = -1; /// 로비 「오늘 받기」 팝업을 띄운 날(날 번호 · 하루 1회). public int welcomeDay = -1; } }