diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-30 21:35:28 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-30 21:35:28 +0200 |
commit | 5214cdfbf26bc0bdee5d669a237fb8aefffb78d5 (patch) | |
tree | 7bec19278a0cf8fc1772e8eb6d985391d402c614 /resources/js/classes | |
parent | 5e2e6753966c19616822915c14795bf62b589f68 (diff) |
story!
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; |