Files
src/miniquake2/client/ui/config.ml
Provides miniquake2 client ui config facilities for this project.
- Package
miniquake2.client.ui.config- Reachable
- Yes
Imports
Declarations
# applyProductConfig
function applyProductConfig(config, input, commandState, mixer, screen)
Apply product config.
| Parameter | Type | Default | Description |
|---|
config | dynamic | — | Configuration used by the operation. |
input | dynamic | — | input value consumed by this operation. |
commandState | dynamic | — | commandState value consumed by this operation. |
mixer | dynamic | — | mixer value consumed by this operation. |
screen | dynamic | — | screen value consumed by this operation. |
View source
# captureProductConfig
function captureProductConfig(input, commandState, mixer, screen)
Capture product config.
| Parameter | Type | Default | Description |
|---|
input | dynamic | — | input value consumed by this operation. |
commandState | dynamic | — | commandState value consumed by this operation. |
mixer | dynamic | — | mixer value consumed by this operation. |
screen | dynamic | — | screen value consumed by this operation. |
View source
# CONFIG_MAX_BINDINGS
const CONFIG_MAX_BINDINGS = 256
Defines the config max bindings constant used by the miniquake2 client ui config module.
View source
# CONFIG_MAX_BYTES
const CONFIG_MAX_BYTES = 65536
Defines the config max bytes constant used by the miniquake2 client ui config module.
View source
# CONFIG_MAX_LINES
const CONFIG_MAX_LINES = 512
Defines the config max lines constant used by the miniquake2 client ui config module.
View source
# decodeProductConfig
function decodeProductConfig(text)
Decode product config.
| Parameter | Type | Default | Description |
|---|
text | dynamic | — | Text consumed by the operation. |
View source
# encodeProductConfig
function encodeProductConfig(config)
Encode product config.
| Parameter | Type | Default | Description |
|---|
config | dynamic | — | Configuration used by the operation. |
View source
# loadProductConfig
function loadProductConfig(path)
Load product config.
| Parameter | Type | Default | Description |
|---|
path | dynamic | — | Path of the file or directory used by the operation. |
View source
miniquake2.client.ui.config.ProductConfig struct
# productConfigEncodedNumber
function productConfigEncodedNumber(value)
MiniLang renders an integral float as `3.`. The command tokenizer's numeric grammar deliberately rejects that spelling, so archive integral values as integers and retain the ordinary representation only for fractional values.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
View source
# productConfigNumber
function productConfigNumber(token, name)
Return the product config number.
| Parameter | Type | Default | Description |
|---|
token | dynamic | — | token value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
View source
# productConfigSafeCommand
function productConfigSafeCommand(command)
Return the product config safe command value.
| Parameter | Type | Default | Description |
|---|
command | dynamic | — | command value consumed by this operation. |
View source
# productConfigValidate
function productConfigValidate(config)
Validate product config.
| Parameter | Type | Default | Description |
|---|
config | dynamic | — | Configuration used by the operation. |
View source
# saveProductConfig
function saveProductConfig(path, config)
Save product config.
| Parameter | Type | Default | Description |
|---|
path | dynamic | — | Path of the file or directory used by the operation. |
config | dynamic | — | Configuration used by the operation. |
View source
# selectProductConfig
function selectProductConfig(path, handover)
A live map-to-map snapshot is authoritative over disk. This mirrors the original client's process-lifetime Cvar/key tables while retaining the file as startup and crash-recovery storage.
| Parameter | Type | Default | Description |
|---|
path | dynamic | — | Path of the file or directory used by the operation. |
handover | dynamic | — | handover value consumed by this operation. |
View source