MiniQuake

src/miniquake/cvar.ml

Package
miniquake.cvar
Reachable
Yes

Imports

Declarations

archiveText

function archiveText(registry)

Implements the `archiveText` operation for `miniquake.cvar` (archive text).

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `archiveText`.

View source

command

function command(registry, arguments)

Implements the `command` operation for `miniquake.cvar` (command).

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `command`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

completeVariable

function completeVariable(registry, partial)

Handle variable and update the associated state.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `completeVariable`.
partialdynamic—The partial input consumed by `completeVariable`.

View source

create

function create(name, stringValue, archive, server)

Implements the `create` operation for `miniquake.cvar` (create).

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.
stringValuedynamic—The string value input consumed by `create`.
archivedynamic—The archive input consumed by `create`.
serverdynamic—Server state participating in the operation.

View source

createRegistry

function createRegistry()

Create and initialize registry.

View source

Cvar_Command

function Cvar_Command(registry, arguments)

Mirror Quake's Cvar_Command routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Cvar_Command`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Cvar_CompleteVariable

function Cvar_CompleteVariable(registry, partial)

Mirror Quake's Cvar_CompleteVariable routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Cvar_CompleteVariable`.
partialdynamic—The partial input consumed by `Cvar_CompleteVariable`.

View source

Cvar_FindVar

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.

---------------------------------------------------------------------------

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Cvar_FindVar`.
varNamedynamic—Name that identifies the requested value or resource.

View source

Cvar_RegisterVariable

function Cvar_RegisterVariable(registry, variable, commandExists)

Mirror Quake's Cvar_RegisterVariable routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Cvar_RegisterVariable`.
variabledynamic—The variable input consumed by `Cvar_RegisterVariable`.
commandExistsdynamic—The command exists input consumed by `Cvar_RegisterVariable`.

View source

Cvar_Set

function Cvar_Set(registry, varName, value)

Mirror Quake's Cvar_Set routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Cvar_Set`.
varNamedynamic—Name that identifies the requested value or resource.
valuedynamic—Value consumed by `Cvar_Set`.

View source

Cvar_SetValue

function Cvar_SetValue(registry, varName, value)

Mirror Quake's Cvar_SetValue routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Cvar_SetValue`.
varNamedynamic—Name that identifies the requested value or resource.
valuedynamic—Value consumed by `Cvar_SetValue`.

View source

Cvar_VariableString

function Cvar_VariableString(registry, varName)

Mirror Quake's Cvar_VariableString routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Cvar_VariableString`.
varNamedynamic—Name that identifies the requested value or resource.

View source

Cvar_VariableValue

function Cvar_VariableValue(registry, varName)

Mirror Quake's Cvar_VariableValue routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Cvar_VariableValue`.
varNamedynamic—Name that identifies the requested value or resource.

View source

Cvar_WriteVariables

function Cvar_WriteVariables(registry)

Mirror Quake's Cvar_WriteVariables routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Cvar_WriteVariables`.

View source

find

function find(registry, name)

Implements the `find` operation for `miniquake.cvar` (find).

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `find`.
namedynamic—Stable name that identifies the requested object or option.

View source

fixedSixValue

function fixedSixValue(value)

Return fixed six value derived from the active module state.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `fixedSixValue`.

View source

numericValue

function numericValue(text)

Return numeric value derived from the active module state.

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.

View source

quoteValue

function quoteValue(text)

Convert data for quote value.

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.

View source

register

function register(registry, variable, commandExists)

Update subsystem configuration for register.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `register`.
variabledynamic—The variable input consumed by `register`.
commandExistsdynamic—The command exists input consumed by `register`.

View source

set

function set(registry, name, stringValue)

Implements the `set` operation for `miniquake.cvar` (set).

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `set`.
namedynamic—Stable name that identifies the requested object or option.
stringValuedynamic—The string value input consumed by `set`.

View source

setValue

function setValue(registry, name, value)

Update module state for value.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `setValue`.
namedynamic—Stable name that identifies the requested object or option.
valuedynamic—Value consumed by `setValue`.

View source

takeServerChanges

function takeServerChanges(registry)

Consume pending state for take server changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `takeServerChanges`.

View source

variableString

function variableString(registry, name)

Implements the `variableString` operation for `miniquake.cvar` (variable string).

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `variableString`.
namedynamic—Stable name that identifies the requested object or option.

View source

variableValue

function variableValue(registry, name)

Return variable value derived from the active module state.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `variableValue`.
namedynamic—Stable name that identifies the requested object or option.

View source