2026-07-08 이벤트존 추가

This commit is contained in:
2026-07-08 18:15:44 +09:00
parent f00da071ff
commit 27a0dfcd44
11 changed files with 1177 additions and 5 deletions

View File

@@ -73,6 +73,15 @@ public void RecordChoice(string code)
Changed?.Invoke();
}
// ── 이벤트존 이력 ────────────────────────────────────────────
public bool HasTriggeredZone(string zoneId) => _state.TriggeredZones.Contains(zoneId);
public void RecordZoneTriggered(string zoneId)
{
if (string.IsNullOrEmpty(zoneId) || !_state.TriggeredZones.Add(zoneId)) return;
Changed?.Invoke();
}
// ── 저장 / 로드 ──────────────────────────────────────────────
// 플레이 시작 시엔 항상 빈 상태로 시작한다 (테스트 반복이 꼬이지 않게).
// 이어하기를 만들 때 타이틀 화면 등에서 Load()를 호출하면 된다.