From 5214cdfbf26bc0bdee5d669a237fb8aefffb78d5 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 30 Aug 2023 21:35:28 +0200 Subject: story! --- resources/js/classes/Area.js | 2 -- resources/js/classes/State.js | 12 ++++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'resources/js/classes') diff --git a/resources/js/classes/Area.js b/resources/js/classes/Area.js index 5a3a062..bafa949 100644 --- a/resources/js/classes/Area.js +++ b/resources/js/classes/Area.js @@ -8,8 +8,6 @@ class Area { this.slug = slug; } - async initialize () {} - get name () { return translate(this.alternateSlug) || slugToName(this.slug); } diff --git a/resources/js/classes/State.js b/resources/js/classes/State.js index e4820d3..0dc06aa 100644 --- a/resources/js/classes/State.js +++ b/resources/js/classes/State.js @@ -1,5 +1,7 @@ class State { Settings = { + name: '', + /** * @type {string} */ @@ -34,6 +36,16 @@ class State { */ lastVisitedTown = ''; + /** + * @type {Object.} + */ + storyProgress = {}; + + /** + * @type {string} + */ + currentStory = null; + /** * @type {number} */ -- cgit v1.2.3