# CL_PlayDemo_f
function CL_PlayDemo_f(data)Apply the Quake-compatible cl play demo f behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
src/miniquake/demo.mlminiquake/array_util.ml as arrays → src/miniquake/array_util.mlminiquake/byteio.ml as bio → src/miniquake/byteio.mlminiquake/constants.ml as c → src/miniquake/constants.mlminiquake/native.ml as native → src/miniquake/native.mlminiquake/types.ml as t → src/miniquake/types.mlstd/fs.ml as fs → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/fs.ml external dependencyfunction CL_PlayDemo_f(data)Apply the Quake-compatible cl play demo f behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
function CL_Record_f(arguments, connected)Apply the Quake-compatible cl record f behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
arguments | dynamic | — | Command-line arguments to inspect or execute. |
connected | dynamic | — | The connected input consumed by `CL_Record_f`. |
function CL_Stop_f(recording, viewAngles)Apply the Quake-compatible cl stop f behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
recording | dynamic | — | The recording input consumed by `CL_Stop_f`. |
viewAngles | dynamic | — | The view angles input consumed by `CL_Stop_f`. |
function CL_WriteDemoMessage(recording, payload, viewAngles)Apply the Quake-compatible cl write demo message behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
recording | dynamic | — | The recording input consumed by `CL_WriteDemoMessage`. |
payload | dynamic | — | The payload input consumed by `CL_WriteDemoMessage`. |
viewAngles | dynamic | — | The view angles input consumed by `CL_WriteDemoMessage`. |
function filename(name)Implements the `filename` operation for `miniquake.demo` (filename).
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
function hasSuffixInsensitive(text, suffix)Report whether suffix insensitive.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
suffix | dynamic | — | The suffix input consumed by `hasSuffixInsensitive`. |
function isKeepalivePayload(payload)Report whether is keepalive payload.
| Parameter | Type | Default | Description |
|---|---|---|---|
payload | dynamic | — | The payload input consumed by `isKeepalivePayload`. |
function load(filename)Implements the `load` operation for `miniquake.demo` (load).
| Parameter | Type | Default | Description |
|---|---|---|---|
filename | dynamic | — | Path of the file to process. |
function parse(data)Implements the `parse` operation for `miniquake.demo` (parse).
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
function parseTrack(data)Read and validate track.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
function save(filename, recording)Implements the `save` operation for `miniquake.demo` (save).
| Parameter | Type | Default | Description |
|---|---|---|---|
filename | dynamic | — | Path of the file to process. |
recording | dynamic | — | The recording input consumed by `save`. |
function serialize(recording)Implements the `serialize` operation for `miniquake.demo` (serialize).
| Parameter | Type | Default | Description |
|---|---|---|---|
recording | dynamic | — | The recording input consumed by `serialize`. |