diff options
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 |