Improve backups #33

Closed
opened 2023-04-17 11:06:47 +00:00 by IsakSkole123 · 0 comments
IsakSkole123 commented 2023-04-17 11:06:47 +00:00 (Migrated from github.com)

Allow cards to have multiple backups.

How it will work:
The backups variable in cards needs to be changed to an object.
The first backup that gets created when the card gets created is called "init".
Card.createBackup() -> Object can be called to create a backup and returns the backup created.
Card.restoreBackup(backup: Object) -> bool can be called to restore a backup. It returns success.

  • Make backups an object and fix any problems in the source code
  • Add createBackup
  • Add restoreBackup
  • Fix all cards that use backups
Allow cards to have multiple backups. *How it will work:* The backups variable in cards needs to be changed to an object. The first backup that gets created when the card gets created is called "init". `Card.createBackup() -> Object` can be called to create a backup and returns the backup created. `Card.restoreBackup(backup: Object) -> bool` can be called to restore a backup. It returns success. - [x] Make backups an object and fix any problems in the source code - [x] Add `createBackup` - [x] Add `restoreBackup` - [x] Fix all cards that use backups
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LunarTides/Hearthstone.js#33
No description provided.