SplitScript reference / SettingsView
SettingsView
type
SettingsView
Selects either the current or previous values of the script's declared settings.
The compiler supplies settings and oldSettings; copying either value is allocation-free because the value only identifies one of the two snapshots.
Examples
Look up a boolean setting by its stable host key
if settings.enabled("split-boss") {
print("Boss splitting is enabled")
}
Methods
| Member | Description | Available through |
|---|---|---|
| contains | Reports whether a value setting declares the stable host key. | |
| enabled | Returns a declared boolean setting selected by its stable host-map key. |