diff options
Diffstat (limited to 'features/bestiary/index.js')
-rw-r--r-- | features/bestiary/index.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/features/bestiary/index.js b/features/bestiary/index.js new file mode 100644 index 0000000..3888ffb --- /dev/null +++ b/features/bestiary/index.js @@ -0,0 +1,37 @@ +/// <reference types="../../../CTAutocomplete" /> +/// <reference lib="es2015" /> +import { m } from "../../../mappings/mappings"; +import Feature from "../../featureClass/class"; +import { drawCoolWaypoint } from "../../utils/renderUtils"; +import SettingBase from "../settings/settingThings/settingBase"; +import ToggleSetting from "../settings/settingThings/toggle"; + + +class Waypoints extends Feature { + constructor() { + super() + } + + onEnable() { + this.initVariables() + + this.bestiaryData = JSON.parse(FileLib.read("soopyAddonsData", "bestiaryData.json") || "{}") + this.bestiaryChanged = false + } + + initVariables() { + + } + + onDisable() { + if (this.bestiaryChanged) { + FileLib.write("soopyAddonsData", "bestiaryData.json", JSON.stringify(this.bestiaryData)) + } + + this.initVariables() + } +} + +module.exports = { + class: new Waypoints() +} |