# XWUIGameEnemyCastBar

An interruptible enemy cast bar that shows the `spellName`, a fill driven by `progress` (0-100), and a remaining-time `timer`, toggling an "INTERRUPTIBLE" label from the `interruptible` flag. Drive it imperatively with `startCast(spellName, duration, interruptible)` to animate the fill over the given ms, then `interrupt()` or `complete()`; configure visibility with `showSpellName`/`showTimer` and the highlight via `interruptColor`.

## Basic Usage

Constructs the bar with a `Fireball` already mid-cast, then calls `startCast()` to animate the fill to completion and count the timer down.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: An interruptible spell shown mid-cast, then driven to completion with startCast().
```

## Interruptible Cast

A long interruptible cast driven by `startCast()`, surfacing the INTERRUPTIBLE label with a custom `interruptColor` highlight.

```example
file: examples/InterruptibleCast.ts
html: examples/InterruptibleCast.html
title: Interruptible Cast
description: A 4s interruptible cast driven by startCast() with a cyan interruptColor highlight.
```

## Unstoppable Cast

A non-interruptible cast with `showTimer` off, so the INTERRUPTIBLE label and countdown are hidden and only the spell name and fill remain.

```example
file: examples/UnstoppableCast.ts
html: examples/UnstoppableCast.html
title: Unstoppable Cast
description: A non-interruptible channel with the timer hidden, showing only the spell name and fill.
```

```api
```
