configure for regolith

This commit is contained in:
ForestOfLight
2025-07-02 20:02:17 -07:00
Unverified
parent b92cdd269c
commit 657467f49d
69 changed files with 29 additions and 1 deletions
@@ -0,0 +1,23 @@
export class BuilderOptions {
static options = {};
static add(builderOption) {
this.options[builderOption.identifier] = builderOption;
}
static get(optionId) {
return this.options[optionId];
}
static getOptionIds() {
return Object.keys(this.options).sort((a, b) => a - b);
}
static isEnabled(optionId, playerId) {
return this.options[optionId].isEnabled(playerId);
}
static setValue(optionId, playerId, value) {
return this.options[optionId].setValue(playerId, value);
}
}