diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-22 12:35:39 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-22 12:35:39 +0800 |
commit | a7dcf231cc43c9ef73d6a969203c2dafd2ce8caf (patch) | |
tree | 41139270236804382713b4e451c609c9751c7ce2 /features/bestiary | |
parent | dd72504a0581380ad44fd1988f943abd01ca25c2 (diff) | |
download | SoopyV2-a7dcf231cc43c9ef73d6a969203c2dafd2ce8caf.tar.gz SoopyV2-a7dcf231cc43c9ef73d6a969203c2dafd2ce8caf.tar.bz2 SoopyV2-a7dcf231cc43c9ef73d6a969203c2dafd2ce8caf.zip |
changes
Diffstat (limited to 'features/bestiary')
-rw-r--r-- | features/bestiary/index.js | 37 | ||||
-rw-r--r-- | features/bestiary/metadata.json | 8 |
2 files changed, 45 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() +} diff --git a/features/bestiary/metadata.json b/features/bestiary/metadata.json new file mode 100644 index 0000000..3ff9383 --- /dev/null +++ b/features/bestiary/metadata.json @@ -0,0 +1,8 @@ +{ + "name": "Bestiary", + "description": "Bestiary trackers", + "isHidden": false, + "isTogglable": true, + "defaultEnabled": true, + "sortA": 0 +}
\ No newline at end of file |