MiniQuake2

src/miniquake2/qcommon/cmd.ml

Provides miniquake2 qcommon cmd facilities for this project.

Package
miniquake2.qcommon.cmd
Reachable
Yes

Imports

Declarations

addAlias

function addAlias(system, name, value)

Add alias.

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

View source

addCommand

function addCommand(system, name, callback)

Add command.

ParameterTypeDefaultDescription
systemdynamic—system value consumed by this operation.
namedynamic—Name of the affected item.
callbackdynamic—Callback invoked when the operation completes or the event occurs.

View source

addText

function addText(system, value)

Add text.

ParameterTypeDefaultDescription
systemdynamic—system value consumed by this operation.
valuedynamic—Value consumed or transformed by the operation.

View source

argumentTail

function argumentTail(value)

Return the argument tail value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

COMMAND_BUFFER_SIZE

const COMMAND_BUFFER_SIZE = 8192

Defines the command buffer size constant used by the miniquake2 qcommon cmd module.

View source

create

function create(cvars)

Creates create for the miniquake2 qcommon cmd module.

ParameterTypeDefaultDescription
cvarsdynamic—cvars value consumed by this operation.

View source

executeBuffer

function executeBuffer(system)

Execute buffer.

ParameterTypeDefaultDescription
systemdynamic—system value consumed by this operation.

View source

executeString

function executeString(system, value)

Execute string.

ParameterTypeDefaultDescription
systemdynamic—system value consumed by this operation.
valuedynamic—Value consumed or transformed by the operation.

View source

insertText

function insertText(system, value)

Insert text.

ParameterTypeDefaultDescription
systemdynamic—system value consumed by this operation.
valuedynamic—Value consumed or transformed by the operation.

View source

macroExpand

function macroExpand(system, value)

Expand unquoted `$cvar` references with the same bounded repeated-scan policy as Cmd_MacroExpandString. Keeping this in qcommon makes config, client-console and dedicated-console command parsing agree.

ParameterTypeDefaultDescription
systemdynamic—system value consumed by this operation.
valuedynamic—Value consumed or transformed by the operation.

View source

MAX_ALIAS_NAME

const MAX_ALIAS_NAME = 32

Defines the max alias name constant used by the miniquake2 qcommon cmd module.

View source

MAX_ARGS

const MAX_ARGS = 80

Defines the max args constant used by the miniquake2 qcommon cmd module.

View source

MAX_STRING_CHARS

const MAX_STRING_CHARS = 1024

Defines the max string chars constant used by the miniquake2 qcommon cmd module.

View source

removeCommand

function removeCommand(system, name)

Remove command.

ParameterTypeDefaultDescription
systemdynamic—system value consumed by this operation.
namedynamic—Name of the affected item.

View source

splitFirst

function splitFirst(value)

Split first.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

tokenize

function tokenize(value)

Return the tokenize value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source