From eaf47bb946659074e123361ca81f48f6b245e6d1 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 5 Sep 2021 18:53:04 -0500 Subject: [PATCH] Moved properties from player data to new settings and state objects --- src/App.vue | 10 +- src/components/board/BoardNode.vue | 9 +- src/components/features/Infobox.vue | 3 +- src/components/fields/Toggle.vue | 8 +- src/components/system/LayerTab.vue | 3 +- src/components/system/Microtab.vue | 11 +- src/components/system/NaNScreen.vue | 36 +++---- src/components/system/Options.vue | 50 ++++++--- src/components/system/SavesManager.vue | 135 +++++++++---------------- src/components/system/TPS.vue | 6 +- src/components/system/TabButton.vue | 3 +- src/components/system/Tabs.vue | 4 +- src/data/layers/demo.ts | 6 +- src/data/mod.ts | 2 +- src/game/gameLoop.ts | 33 +++--- src/game/layers.ts | 5 +- src/game/player.ts | 24 +---- src/game/settings.ts | 72 +++++++++++++ src/game/state.ts | 44 ++++++++ src/typings/global.d.ts | 5 + src/typings/player.d.ts | 23 +---- src/typings/settings.d.ts | 13 +++ src/typings/transient.d.ts | 13 +++ src/util/save.ts | 76 +++----------- src/util/vue.ts | 58 ++++++++--- 25 files changed, 367 insertions(+), 285 deletions(-) create mode 100644 src/game/settings.ts create mode 100644 src/game/state.ts create mode 100644 src/typings/settings.d.ts create mode 100644 src/typings/transient.d.ts diff --git a/src/App.vue b/src/App.vue index bec3fe5..fcc11e3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,11 +11,11 @@