# append
function append(demo, packet)Append state.
| Parameter | Type | Default | Description |
|---|---|---|---|
demo | dynamic | — | demo value consumed by this operation. |
packet | dynamic | — | packet value consumed by this operation. |
src/miniquake2/client/demo.mlProvides miniquake2 client demo facilities for this project.
miniquake2/qcommon/byteio.ml as demobio → src/miniquake2/qcommon/byteio.mlminiquake2/qcommon/constants.ml as qc → src/miniquake2/qcommon/constants.mlfunction append(demo, packet)Append state.
| Parameter | Type | Default | Description |
|---|---|---|---|
demo | dynamic | — | demo value consumed by this operation. |
packet | dynamic | — | packet value consumed by this operation. |
function appendLive(demo, packet, frameCount, deltaNumber)CL_Record_f writes setup state immediately, then waits for a non-delta snapshot so the first recorded gameplay frame never references history from before recording began. Pure config/sound messages remain safe meanwhile.
| Parameter | Type | Default | Description |
|---|---|---|---|
demo | dynamic | — | demo value consumed by this operation. |
packet | dynamic | — | packet value consumed by this operation. |
frameCount | dynamic | — | Number of frame to process. |
deltaNumber | dynamic | — | deltaNumber value consumed by this operation. |
function appendStreaming(demo, packet)Append streaming.
| Parameter | Type | Default | Description |
|---|---|---|---|
demo | dynamic | — | demo value consumed by this operation. |
packet | dynamic | — | packet value consumed by this operation. |
function beginLiveRecording(demo)Begin live recording.
| Parameter | Type | Default | Description |
|---|---|---|---|
demo | dynamic | — | demo value consumed by this operation. |
function create()Creates create for the miniquake2 client demo module.
function decodeDemo(data)Decode demo.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
miniquake2.client.demo.Demo struct
miniquake2.client.demo.DemoPacketNode struct
miniquake2.client.demo.DemoPlayer struct
function encodeDemo(demo)Encode demo.
| Parameter | Type | Default | Description |
|---|---|---|---|
demo | dynamic | — | demo value consumed by this operation. |
function materialize(demo)Materialize state.
| Parameter | Type | Default | Description |
|---|---|---|---|
demo | dynamic | — | demo value consumed by this operation. |
function nextPacket(player)Return the next packet value.
| Parameter | Type | Default | Description |
|---|---|---|---|
player | dynamic | — | player value consumed by this operation. |
function packetCount(demo)Return the packet count.
| Parameter | Type | Default | Description |
|---|---|---|---|
demo | dynamic | — | demo value consumed by this operation. |
function player(demo)Return the player value.
| Parameter | Type | Default | Description |
|---|---|---|---|
demo | dynamic | — | demo value consumed by this operation. |