Constructor
new DeathRetryManager(configopt)
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config | Object | <optional> | Properties
|
Classes
Methods
handleDeath() → {Object}
Process actor death: cleanses temporary buffs/debuffs, applies experience penalty.
Returns:
Death summary
- Type:
- Object
recordCheckpoint(metadataopt) → {Object}
Save current game state as the active checkpoint.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
metadata | Object | <optional> | {} | Optional scene, position, or flag data |
Returns:
Checkpoint snapshot
- Type:
- Object
retry() → {Object}
Retry from last checkpoint. Restores health, resets dead status, and applies checkpoint progression. Can be invoked repeatedly across multiple death cycles without state corruption.
Returns:
Retry result
- Type:
- Object