MiniQuake

src/miniquake/demo.ml

Package
miniquake.demo
Reachable
Yes

Imports

Declarations

CL_PlayDemo_f

function CL_PlayDemo_f(data)

Apply the Quake-compatible cl play demo f behavior.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.

View source

CL_Record_f

function CL_Record_f(arguments, connected)

Apply the Quake-compatible cl record f behavior.

ParameterTypeDefaultDescription
argumentsdynamic—Command-line arguments to inspect or execute.
connecteddynamic—The connected input consumed by `CL_Record_f`.

View source

CL_Stop_f

function CL_Stop_f(recording, viewAngles)

Apply the Quake-compatible cl stop f behavior.

ParameterTypeDefaultDescription
recordingdynamic—The recording input consumed by `CL_Stop_f`.
viewAnglesdynamic—The view angles input consumed by `CL_Stop_f`.

View source

CL_WriteDemoMessage

function CL_WriteDemoMessage(recording, payload, viewAngles)

Apply the Quake-compatible cl write demo message behavior.

ParameterTypeDefaultDescription
recordingdynamic—The recording input consumed by `CL_WriteDemoMessage`.
payloaddynamic—The payload input consumed by `CL_WriteDemoMessage`.
viewAnglesdynamic—The view angles input consumed by `CL_WriteDemoMessage`.

View source

filename

function filename(name)

Implements the `filename` operation for `miniquake.demo` (filename).

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.

View source

hasSuffixInsensitive

function hasSuffixInsensitive(text, suffix)

Report whether suffix insensitive.

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.
suffixdynamic—The suffix input consumed by `hasSuffixInsensitive`.

View source

isKeepalivePayload

function isKeepalivePayload(payload)

Report whether is keepalive payload.

ParameterTypeDefaultDescription
payloaddynamic—The payload input consumed by `isKeepalivePayload`.

View source

load

function load(filename)

Implements the `load` operation for `miniquake.demo` (load).

ParameterTypeDefaultDescription
filenamedynamic—Path of the file to process.

View source

parse

function parse(data)

Implements the `parse` operation for `miniquake.demo` (parse).

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.

View source

parseTrack

function parseTrack(data)

Read and validate track.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.

View source

recordTrackNumber

function recordTrackNumber(text)

CL_Record_f uses the C library atoi, not MiniLang toNumber/Q_atof. It skips leading ASCII whitespace, accepts an optional sign, consumes the initial decimal digit run and returns zero when no digits are present.

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.

View source

save

function save(filename, recording)

Implements the `save` operation for `miniquake.demo` (save).

ParameterTypeDefaultDescription
filenamedynamic—Path of the file to process.
recordingdynamic—The recording input consumed by `save`.

View source

serialize

function serialize(recording)

Implements the `serialize` operation for `miniquake.demo` (serialize).

ParameterTypeDefaultDescription
recordingdynamic—The recording input consumed by `serialize`.

View source