add class ItemListBox
This commit is contained in:
parent
24ef767f48
commit
90f7190f38
2 changed files with 14 additions and 2 deletions
|
|
@ -1749,6 +1749,12 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
||||||
let itemsLog = [];
|
let itemsLog = [];
|
||||||
|
|
||||||
if (mode === "notActivated") {
|
if (mode === "notActivated") {
|
||||||
|
|
||||||
|
/*
|
||||||
|
let list = new ItemListBox(worldData);
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
for (let i = 0; i < arrayLength; i++) {
|
for (let i = 0; i < arrayLength; i++) {
|
||||||
if (worldData[i].activated === false &&
|
if (worldData[i].activated === false &&
|
||||||
worldData[i].semiPersistent === false) {
|
worldData[i].semiPersistent === false) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,12 @@
|
||||||
/* This file will contain all classes and functions for creating things on the page */
|
/* This file will contain all classes and functions for creating things on the page */
|
||||||
class ItemListBox {
|
export class ItemListBox {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
console.log("ItemListBox is being created");
|
console.log("ItemListBox is created");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assignElements(worldData) {
|
||||||
|
this.worldData = worldData; /* array of .id */
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue