new class DataChecker
This commit is contained in:
parent
ef19294b98
commit
76cea548cc
2 changed files with 26 additions and 12 deletions
26
src/js/classes.js
Normal file
26
src/js/classes.js
Normal 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -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 */
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue