Add import and export functionality
This commit is contained in:
@@ -18,6 +18,10 @@ export function getNextId() {
|
||||
return nextId;
|
||||
}
|
||||
|
||||
export function setAdventures(importArray: Adventure[]) {
|
||||
adventures = importArray
|
||||
}
|
||||
|
||||
export function addAdventure(adventure: Adventure) {
|
||||
adventures = [...adventures, adventure];
|
||||
if (isBrowser) {
|
||||
|
||||
Reference in New Issue
Block a user