MiniQuake2

src/miniquake2/qcommon/cvar.ml

Provides miniquake2 qcommon cvar facilities for this project.

Package
miniquake2.qcommon.cvar
Reachable
Yes

Imports

Declarations

applyLatched

function applyLatched(registry)

Apply latched.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.

View source

archiveText

function archiveText(registry)

Serialize the CVAR_ARCHIVE subset in an executable Quake II config form.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.

View source

bitInfo

function bitInfo(registry, flags)

Return the bit info value.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
flagsdynamic—Bit flags controlling the operation.

View source

command

function command(registry, arguments)

Return the command value.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
argumentsdynamic—arguments value consumed by this operation.

View source

createRegistry

function createRegistry()

Create registry.

View source

find

function find(registry, name)

Finds find used by the miniquake2 qcommon cvar module.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
namedynamic—Name of the affected item.

View source

forceSet

function forceSet(registry, name, value)

Set force.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
namedynamic—Name of the affected item.
valuedynamic—Value consumed or transformed by the operation.

View source

fullSet

function fullSet(registry, name, value, flags)

Set full.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
namedynamic—Name of the affected item.
valuedynamic—Value consumed or transformed by the operation.
flagsdynamic—Bit flags controlling the operation.

View source

get

function get(registry, name, defaultValue, flags)

Return state.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
namedynamic—Name of the affected item.
defaultValuedynamic—defaultValue value consumed by this operation.
flagsdynamic—Bit flags controlling the operation.

View source

infoValueValid

function infoValueValid(value)

Report whether info value valid.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

listText

function listText(registry)

Return the stock cvarlist flags and values for a console frontend.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.

View source

numericValue

function numericValue(text)

Performs the numericValue operation for the miniquake2 qcommon cvar module.

ParameterTypeDefaultDescription
textdynamic—Text consumed by the operation.

View source

set

function set(registry, name, value)

Set state.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
namedynamic—Name of the affected item.
valuedynamic—Value consumed or transformed by the operation.

View source

set2

function set2(registry, name, value, force)

Set 2.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
namedynamic—Name of the affected item.
valuedynamic—Value consumed or transformed by the operation.
forcedynamic—force value consumed by this operation.

View source

setCommand

function setCommand(registry, arguments)

Apply the stock `set <name> <value> [u|s]` console command. Returning text instead of printing keeps the qcommon service usable by client and server consoles without a platform dependency.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
argumentsdynamic—arguments value consumed by this operation.

View source

variableString

function variableString(registry, name)

Return the variable string value.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
namedynamic—Name of the affected item.

View source

variableValue

function variableValue(registry, name)

Return the variable value.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
namedynamic—Name of the affected item.

View source