Skip to content

Commit

Permalink
stringify and parse
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonTDM committed Jun 28, 2024
1 parent a26b017 commit 3e183f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions game/js/CFP_Beta.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ function cloneFromPlants(music, background) {
let levelData = [plantArray, background];
return levelData;
}
function stringifyClone(levelData) {
return JSON.stringify(levelData);
}
function parseClone(stringifiedData) {
return JSON.parse(stringifiedData);
}
function restoreToPlants(levelData) {
// we'll use a function for the plants
// CustomSpecial(window[planeName], pos1, pos2);
Expand Down

0 comments on commit 3e183f0

Please sign in to comment.