# archiveText
function archiveText(registry)Implements the `archiveText` operation for `miniquake.cvar` (archive text).
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `archiveText`. |
src/miniquake/cvar.mlminiquake/common.ml as common → src/miniquake/common.mlminiquake/native.ml as native → src/miniquake/native.mlminiquake/types.ml as t → src/miniquake/types.mlstd/ds/hashmap.ml as hashmap → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/ds/hashmap.ml external dependencyfunction archiveText(registry)Implements the `archiveText` operation for `miniquake.cvar` (archive text).
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `archiveText`. |
function command(registry, arguments)Implements the `command` operation for `miniquake.cvar` (command).
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `command`. |
arguments | dynamic | — | Command-line arguments to inspect or execute. |
function completeVariable(registry, partial)Handle variable and update the associated state.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `completeVariable`. |
partial | dynamic | — | The partial input consumed by `completeVariable`. |
function create(name, stringValue, archive, server)Implements the `create` operation for `miniquake.cvar` (create).
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
stringValue | dynamic | — | The string value input consumed by `create`. |
archive | dynamic | — | The archive input consumed by `create`. |
server | dynamic | — | Server state participating in the operation. |
function createRegistry()Create and initialize registry.
function Cvar_Command(registry, arguments)Mirror Quake's Cvar_Command routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Cvar_Command`. |
arguments | dynamic | — | Command-line arguments to inspect or execute. |
function Cvar_CompleteVariable(registry, partial)Mirror Quake's Cvar_CompleteVariable routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Cvar_CompleteVariable`. |
partial | dynamic | — | The partial input consumed by `Cvar_CompleteVariable`. |
function Cvar_FindVar(registry, varName)--------------------------------------------------------------------------- WinQuake cvar.c source-surface adapters.
The C implementation stores its registry and current command arguments in
globals. MiniQuake keeps those contexts explicit, so the original exported
names are retained with the required context passed as parameters.
---------------------------------------------------------------------------
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Cvar_FindVar`. |
varName | dynamic | — | Name that identifies the requested value or resource. |
function Cvar_RegisterVariable(registry, variable, commandExists)Mirror Quake's Cvar_RegisterVariable routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Cvar_RegisterVariable`. |
variable | dynamic | — | The variable input consumed by `Cvar_RegisterVariable`. |
commandExists | dynamic | — | The command exists input consumed by `Cvar_RegisterVariable`. |
function Cvar_Set(registry, varName, value)Mirror Quake's Cvar_Set routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Cvar_Set`. |
varName | dynamic | — | Name that identifies the requested value or resource. |
value | dynamic | — | Value consumed by `Cvar_Set`. |
function Cvar_SetValue(registry, varName, value)Mirror Quake's Cvar_SetValue routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Cvar_SetValue`. |
varName | dynamic | — | Name that identifies the requested value or resource. |
value | dynamic | — | Value consumed by `Cvar_SetValue`. |
function Cvar_VariableString(registry, varName)Mirror Quake's Cvar_VariableString routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Cvar_VariableString`. |
varName | dynamic | — | Name that identifies the requested value or resource. |
function Cvar_VariableValue(registry, varName)Mirror Quake's Cvar_VariableValue routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Cvar_VariableValue`. |
varName | dynamic | — | Name that identifies the requested value or resource. |
function Cvar_WriteVariables(registry)Mirror Quake's Cvar_WriteVariables routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Cvar_WriteVariables`. |
function find(registry, name)Implements the `find` operation for `miniquake.cvar` (find).
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `find`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function fixedSixValue(value)Return fixed six value derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `fixedSixValue`. |
function numericValue(text)Return numeric value derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
function quoteValue(text)Convert data for quote value.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
function register(registry, variable, commandExists)Update subsystem configuration for register.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `register`. |
variable | dynamic | — | The variable input consumed by `register`. |
commandExists | dynamic | — | The command exists input consumed by `register`. |
function set(registry, name, stringValue)Implements the `set` operation for `miniquake.cvar` (set).
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `set`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
stringValue | dynamic | — | The string value input consumed by `set`. |
function setValue(registry, name, value)Update module state for value.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `setValue`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
value | dynamic | — | Value consumed by `setValue`. |
function takeServerChanges(registry)Consume pending state for take server changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `takeServerChanges`. |
function variableString(registry, name)Implements the `variableString` operation for `miniquake.cvar` (variable string).
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `variableString`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function variableValue(registry, name)Return variable value derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `variableValue`. |
name | dynamic | — | Stable name that identifies the requested object or option. |