add class ItemListBox

This commit is contained in:
ReznoRMichael 2021-12-07 11:03:05 +01:00
parent 24ef767f48
commit 90f7190f38
2 changed files with 14 additions and 2 deletions

View file

@ -1749,6 +1749,12 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
let itemsLog = [];
if (mode === "notActivated") {
/*
let list = new ItemListBox(worldData);
*/
for (let i = 0; i < arrayLength; i++) {
if (worldData[i].activated === false &&
worldData[i].semiPersistent === false) {

View file

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