Add the very first dev-oriented setting and a DevSettingsConfig to manage it

This commit is contained in:
Oliver 2025-12-07 17:38:08 -07:00
parent 28d0105397
commit 5573a5b674
6 changed files with 120 additions and 1 deletions

View file

@ -0,0 +1,9 @@
/** @type {Map<string, boolean>} */
export const devSettings = new Map();
export function registerDevSetting(namespace, key, config) {
const visible = config.config;
config.config = false;
game.settings.register(namespace, key, config);
devSettings.set(`${namespace}.${key}`, visible);
};