MiniQuake2

src/miniquake2/network/runtime/messages.ml

Provides miniquake2 network runtime messages facilities for this project.

Package
miniquake2.network.runtime.messages
Reachable
Yes

Imports

Declarations

appendBytes

function appendBytes(first, second)

Append bytes.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.

View source

parsePayload

function parsePayload(runtime, payload)

Parse payload.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
payloaddynamic—payload value consumed by this operation.

View source

parseServerData

function parseServerData(runtime, buffer)

Parse server data.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
bufferdynamic—Buffer that receives or supplies the operation data.

View source

parseServerDataVersion

function parseServerDataVersion(runtime, buffer, allowLegacyDemo)

Parse server data version.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
bufferdynamic—Buffer that receives or supplies the operation data.
allowLegacyDemodynamic—allowLegacyDemo value consumed by this operation.

View source

readingBuffer

function readingBuffer(data)

Return the reading buffer value.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.

View source

readString

function readString(buffer, operation, maximum)

Read string.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
operationdynamic—operation value consumed by this operation.
maximumdynamic—maximum value consumed by this operation.

View source

writeConfigString

function writeConfigString(buffer, index, value)

Write config string.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
indexdynamic—Zero-based index of the affected item.
valuedynamic—Value consumed or transformed by the operation.

View source

writeDownload

function writeDownload(buffer, data, offset, count, percent)

Write download.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset at which processing starts.
countdynamic—Number of items or units to process.
percentdynamic—percent value consumed by this operation.

View source

writeServerData

function writeServerData(buffer, spawnCount, attractLoop, gameDir, playerNumber, levelName)

Write server data.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
spawnCountdynamic—Number of spawn to process.
attractLoopdynamic—attractLoop value consumed by this operation.
gameDirdynamic—gameDir value consumed by this operation.
playerNumberdynamic—playerNumber value consumed by this operation.
levelNamedynamic—levelName value consumed by this operation.

View source

writeSpawnBaseline

function writeSpawnBaseline(buffer, state)

Write spawn baseline.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
statedynamic—Mutable state inspected or updated by the operation.

View source

writeStuffText

function writeStuffText(buffer, text)

Write stuff text.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
textdynamic—Text consumed by the operation.

View source