rsmm.sdk.config
rsmm.sdk.config
Per-mod config: schema validation + persisted store.
Schema:
{fields.
Types: bool, int, float, string, enum.
Storage:
mods/
ConfigStore
ConfigStore.get
ConfigStore.get(self, key: 'str', fallback: 'Any' = None) -> 'Any'Read a config value by key, returning fallback if unset.
ConfigStore.set
ConfigStore.set(self, key: 'str', value: 'Any') -> 'None'Set a config value, coercing to the schema field’s type and persisting.
Raises ConfigError if key is not declared in the schema.