# XWUIGameMissionDebrief

A post-mission results/debrief screen that shows a `MISSION COMPLETE` / `MISSION FAILED` status (driven by `data.completed`), the mission `title`, a letter-grade `rating` (S/A/B/C/D, each color-coded), a stats grid (`stats.time`, `stats.kills`, `stats.deaths`), a rewards list (`rewards[]`), and a Continue button that fires a `debrief-continue` event. Toggle sections with the `showRating`, `showStats`, and `showRewards` conf_comp flags. Use it as the end-of-mission summary card after an objective sequence completes or fails.

## Basic Usage

Instantiates the debrief screen in the `#app` element for a completed mission, rendering the MISSION COMPLETE header, an A rating, a stats grid, reward tags, and the Continue button.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A completed-mission debrief with an A rating, stats grid, and reward tags.
```

## Flawless Victory

The top-grade success card: an S rating with a flawless (zero-death) stats grid and rich rewards.

```example
file: examples/FlawlessVictory.ts
html: examples/BasicUsage.html
title: Flawless Victory
description: A completed mission with an S rating, zero deaths, and a rich reward list.
```

## Mission Failed

The fail state, with the MISSION FAILED header, a D rating, and the rewards section hidden.

```example
file: examples/MissionFailed.ts
html: examples/BasicUsage.html
title: Mission Failed
description: A failed mission showing the MISSION FAILED header, a D rating, and no rewards.
```

```api
```
