MiniQuake2

src/miniquake2/client/ui/commands.ml

Provides miniquake2 client ui commands facilities for this project.

Package
miniquake2.client.ui.commands
Reachable
Yes

Imports

Declarations

booleanArgument

function booleanArgument(arguments, name)

Return the boolean argument value.

ParameterTypeDefaultDescription
argumentsdynamic—arguments value consumed by this operation.
namedynamic—Name of the affected item.

View source

miniquake2.client.ui.commands.CommandState struct

create

function create()

Creates create for the miniquake2 client ui commands module.

View source

downloadPolicy

function downloadPolicy(commandState)

Return the download policy value.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

drain

function drain(commandState, input, screen, mixer)

Drain state.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.
inputdynamic—input value consumed by this operation.
screendynamic—screen value consumed by this operation.
mixerdynamic—mixer value consumed by this operation.

View source

execute

function execute(commandState, input, screen, mixer, command)

Execute state.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.
inputdynamic—input value consumed by this operation.
screendynamic—screen value consumed by this operation.
mixerdynamic—mixer value consumed by this operation.
commanddynamic—command value consumed by this operation.

View source

integerArgument

function integerArgument(arguments, name, minimum, maximum)

Return the integer argument value.

ParameterTypeDefaultDescription
argumentsdynamic—arguments value consumed by this operation.
namedynamic—Name of the affected item.
minimumdynamic—minimum value consumed by this operation.
maximumdynamic—maximum value consumed by this operation.

View source

localAction

function localAction(commandState, input, screen, mixer, command)

Apply commands owned by the client UI and return false only for text that must cross the Game API boundary. Parsing and validation happen before any persistent setting is mutated.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.
inputdynamic—input value consumed by this operation.
screendynamic—screen value consumed by this operation.
mixerdynamic—mixer value consumed by this operation.
commanddynamic—command value consumed by this operation.

View source

numericArgument

function numericArgument(arguments, name)

Return the numeric argument value.

ParameterTypeDefaultDescription
argumentsdynamic—arguments value consumed by this operation.
namedynamic—Name of the affected item.

View source

playerModelName

function playerModelName(index)

Return the player model name.

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the affected item.

View source

playerProfile

function playerProfile(commandState, input)

Return the player profile value.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.
inputdynamic—input value consumed by this operation.

View source

playerSkinName

function playerSkinName(model, index)

Return the player skin name.

ParameterTypeDefaultDescription
modeldynamic—model value consumed by this operation.
indexdynamic—Zero-based index of the affected item.

View source

resetOptionDefaults

function resetOptionDefaults(commandState, input, screen, mixer)

`exec default.cfg` in the stock Options menu resets controls and the values displayed by that menu. Keep the operation local and typed so it cannot run arbitrary config text, while applying every setting our Options page owns.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.
inputdynamic—input value consumed by this operation.
screendynamic—screen value consumed by this operation.
mixerdynamic—mixer value consumed by this operation.

View source

serverOptions

function serverOptions(commandState)

Return the server options value.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

setDmFlag

function setDmFlag(commandState, bit, enabled)

Set dm flag.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.
bitdynamic—bit value consumed by this operation.
enableddynamic—enabled value consumed by this operation.

View source

takeConfigDirty

function takeConfigDirty(commandState)

Report whether take config dirty.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeConnectAddress

function takeConnectAddress(commandState)

Consume connect address.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeDisconnect

function takeDisconnect(commandState)

Consume disconnect.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeForwarded

inline function takeForwarded(commandState)

Consume forwarded.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeLoadSlot

function takeLoadSlot(commandState)

Consume load slot.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeNewGameSkill

function takeNewGameSkill(commandState)

Consume new game skill.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takePlayerDirty

function takePlayerDirty(commandState)

Report whether take player dirty.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeRconCommands

function takeRconCommands(commandState)

Consume pending remote-console commands.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeReconnect

function takeReconnect(commandState)

Consume reconnect request.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeRecordName

function takeRecordName(commandState)

Consume record name.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeRefreshServers

function takeRefreshServers(commandState)

Consume refresh servers.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeSaveSlot

function takeSaveSlot(commandState)

Consume save slot.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeScreenshot

function takeScreenshot(commandState)

Consume screenshot.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeStartServer

function takeStartServer(commandState)

Consume start server.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source

takeStopRecording

function takeStopRecording(commandState)

Consume stop recording.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.

View source