Add the very first dev-oriented setting and a DevSettingsConfig to manage it
This commit is contained in:
parent
28d0105397
commit
5573a5b674
6 changed files with 120 additions and 1 deletions
9
module/utils/DevSettings.mjs
Normal file
9
module/utils/DevSettings.mjs
Normal 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);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue