new class DataChecker

This commit is contained in:
ReznoRMichael 2022-01-19 19:52:45 +01:00
parent ef19294b98
commit 76cea548cc
2 changed files with 26 additions and 12 deletions

26
src/js/classes.js Normal file
View file

@ -0,0 +1,26 @@
/* This file will contain all classes */
export class ItemListBox {
constructor() {
console.log("ItemListBox is created");
}
assignElements(worldData) {
this.worldData = worldData; /* array of .id */
}
}
export class DataChecker {
constructor(saveFile, section) {
this.saveFile = saveFile;
this.section = section;
this.entries = section.entries;
this.playerData = saveFile.playerData;
this.boolData = saveFile.sceneData.persistentBoolItems;
this.geoRocksData = saveFile.sceneData.geoRocks;
}
}

View file

@ -1,12 +0,0 @@
/* This file will contain all classes and functions for creating things on the page */
export class ItemListBox {
constructor() {
console.log("ItemListBox is created");
}
assignElements(worldData) {
this.worldData = worldData; /* array of .id */
}
}