diff options
Diffstat (limited to 'resources/js/classes')
-rw-r--r-- | resources/js/classes/Area.js | 2 | ||||
-rw-r--r-- | resources/js/classes/State.js | 12 |
2 files changed, 12 insertions, 2 deletions
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} */ @@ -35,6 +37,16 @@ class State { lastVisitedTown = ''; /** + * @type {Object.<string, boolean>} + */ + storyProgress = {}; + + /** + * @type {string} + */ + currentStory = null; + + /** * @type {number} */ turn = 0; |