Skip to content

rsmm.sdk.config

rsmm.sdk.config

Per-mod config: schema validation + persisted store.

Schema: {fields..{type, default, min, max, label, choices, enum}}

Types: bool, int, float, string, enum.

Storage: mods//config.toml — user-edited values mods//config_schema.toml — schema (authored by modder)

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.