Add snapshots and Game.dryRun #464
Labels
No labels
breaking change
duplicate
good first issue
help wanted
invalid
question
scope: card
scope: docs
scope: game
scope: registry
scope: script
scope: tool
scope: universe
tracker
type: bug
type: card request
type: documentation
type: enhancement
type: improvement
type: parity
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
LunarTides/Hearthstone.js#464
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add
Game.dryRun, which undoes the code that's run. This should be a direct method of the game class since it affects the entire game.Scripts can make use of this temporarily until #407 is done, or permanently if #407 is more intensive.
This makes #21 feasible.
This might allow for general undo in the future.
Example
Implementation
Pseudo-code