MiniQuake2

src/miniquake2/client/runtime/dispatcher.ml

Provides miniquake2 client runtime dispatcher facilities for this project.

Package
miniquake2.client.runtime.dispatcher
Reachable
Yes

Imports

Declarations

acceptFrame

function acceptFrame(runtime, buffer)

Accept frame.

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

View source

activeResolverRuntime

activeResolverRuntime

Stores module-wide active resolver runtime state for the miniquake2 client runtime dispatcher module.

View source

appendDownload

function appendDownload(runtime, buffer)

Append download.

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

View source

appendLimited

function appendLimited(values, value, maximum)

Append limited.

ParameterTypeDefaultDescription
valuesdynamic—values value consumed by this operation.
valuedynamic—Value consumed or transformed by the operation.
maximumdynamic—maximum value consumed by this operation.

View source

beginMapChange

function beginMapChange(runtime)

Begin map change.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

beginReconnect

function beginReconnect(runtime, now)

Begin a user-requested reconnect through the same atomic retirement path as svc_reconnect, without pretending that a server packet was received.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

copyArray

function copyArray(values)

Copy array data.

ParameterTypeDefaultDescription
valuesdynamic—values value consumed by this operation.

View source

create

function create(networkRuntime, clientState, effectState)

Creates create for the miniquake2 client runtime dispatcher module.

ParameterTypeDefaultDescription
networkRuntimedynamic—networkRuntime value consumed by this operation.
clientStatedynamic—clientState value consumed by this operation.
effectStatedynamic—effectState value consumed by this operation.

View source

dispatch

function dispatch(runtime, payload, sequence, now)

Dispatch state.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
payloaddynamic—payload value consumed by this operation.
sequencedynamic—sequence value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

entity

function entity(runtime, number)

Return the entity value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

MAX_PRINT_HANDOFFS

const MAX_PRINT_HANDOFFS = 64

Defines the max print handoffs constant used by the miniquake2 client runtime dispatcher module.

View source

MAX_SCREEN_HANDOFFS

const MAX_SCREEN_HANDOFFS = 16

Defines the max screen handoffs constant used by the miniquake2 client runtime dispatcher module.

View source

nextDemo

function nextDemo(runtime, player, now)

Return the next demo value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerdynamic—player value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

parseBuffer

function parseBuffer(runtime, buffer, now)

Parse buffer.

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

View source

parseCenterPrint

function parseCenterPrint(runtime, buffer, now)

Parse center print.

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

View source

parseInventory

function parseInventory(runtime, buffer, now)

Parse inventory.

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

View source

parseLayout

function parseLayout(runtime, buffer, now)

Parse layout.

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

View source

parsePrint

function parsePrint(runtime, buffer, now)

Parse print.

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

View source

pendingStuffText

function pendingStuffText(runtime)

Report whether pending stuff text.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

readUiString

function readUiString(buffer, operation)

Read ui string.

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

View source

releaseResolver

function releaseResolver()

Release resolver.

View source

resetClientState

function resetClientState(runtime)

Reset client state.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

resolveEntity

function resolveEntity(number)

Resolve entity.

ParameterTypeDefaultDescription
numberdynamic—number value consumed by this operation.

View source

setDemoRecorder

function setDemoRecorder(runtime, demo)

Set demo recorder.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
demodynamic—demo value consumed by this operation.

View source

setDownloadManager

function setDownloadManager(runtime, manager)

Set download manager.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
managerdynamic—manager value consumed by this operation.

View source

setLegacyDemoCompatibility

function setLegacyDemoCompatibility(runtime, enabled)

Release DM2 files shipped with Quake II use protocol 26. The 3.19 client kept an explicit demo-only compatibility hack; live network sessions remain strictly Protocol 34.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
enableddynamic—enabled value consumed by this operation.

View source

takeCenterPrints

function takeCenterPrints(runtime)

Consume center prints.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

takeInventories

function takeInventories(runtime)

Consume inventories.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

takeLayouts

function takeLayouts(runtime)

Consume layouts.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

takePrints

function takePrints(runtime)

Consume prints.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

validationRuntime

function validationRuntime(runtime)

Return the validation runtime value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source