MiniQuake2

src/miniquake2/server/game_messages.ml

Provides miniquake2 server game messages facilities for this project.

Package
miniquake2.server.game_messages
Reachable
Yes

Imports

Declarations

baseDestination

function baseDestination(destination)

Return the base destination value.

ParameterTypeDefaultDescription
destinationdynamic—destination value consumed by this operation.

View source

claimEmissionSerial

function claimEmissionSerial(runtime)

Claim one ordering token shared by every GameImport message class. Stock Quake II appends multicast, unicast and sound commands to client buffers at the instant they are emitted; independent per-type counters lose that order when the managed bridge drains its typed queues at the frame boundary.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

clearMulticasts

function clearMulticasts(runtime)

Clear multicast queue state while retaining its fixed storage.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

clearUnicasts

function clearUnicasts(runtime)

Clear unicast queue state while retaining its fixed storage.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

copiedOrigin

function copiedOrigin(origin)

Return the copied origin.

ParameterTypeDefaultDescription
origindynamic—origin value consumed by this operation.

View source

copyPayload

function copyPayload(payload)

Copy payload data.

ParameterTypeDefaultDescription
payloaddynamic—payload value consumed by this operation.

View source

enableOptimizedQueues

function enableOptimizedQueues(runtime)

Disable compatibility array views for the live server. Tests and component callers can retain the compact public arrays, while the product uses the fixed queues below and materializes one frame snapshot only when routing.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

enqueue

function enqueue(runtime, origin, destination, payload)

Return the enqueue value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
origindynamic—origin value consumed by this operation.
destinationdynamic—destination value consumed by this operation.
payloaddynamic—payload value consumed by this operation.

View source

enqueueUnicast

function enqueueUnicast(runtime, entity, reliable, payload)

Return the enqueue unicast value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
entitydynamic—entity value consumed by this operation.
reliabledynamic—reliable value consumed by this operation.
payloaddynamic—payload value consumed by this operation.

View source

MAX_MULTICAST_FRAGMENT_BYTES

const MAX_MULTICAST_FRAGMENT_BYTES = 1392

Defines the max multicast fragment bytes constant used by the miniquake2 server game messages module.

View source

MAX_PENDING_MULTICAST_BYTES

const MAX_PENDING_MULTICAST_BYTES = 88576

Defines the max pending multicast bytes constant used by the miniquake2 server game messages module.

View source

MAX_PENDING_MULTICAST_EVENTS

const MAX_PENDING_MULTICAST_EVENTS = 256

Defines the max pending multicast events constant used by the miniquake2 server game messages module.

View source

MAX_PENDING_UNICAST_BYTES

const MAX_PENDING_UNICAST_BYTES = 88576

Defines the max pending unicast bytes constant used by the miniquake2 server game messages module.

View source

MAX_PENDING_UNICAST_EVENTS

const MAX_PENDING_UNICAST_EVENTS = 256

Defines the max pending unicast events constant used by the miniquake2 server game messages module.

View source

numeric

function numeric(value)

Performs the numeric operation for the miniquake2 server game messages module.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

pendingMulticastSnapshot

function pendingMulticastSnapshot(runtime)

Copy the active multicast prefix for one routing transaction.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

pendingUnicastSnapshot

function pendingUnicastSnapshot(runtime)

Copy the active unicast prefix for one routing transaction.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

queuedBytes

function queuedBytes(events)

Report whether queued bytes.

ParameterTypeDefaultDescription
eventsdynamic—events value consumed by this operation.

View source

queuedUnicastBytes

function queuedUnicastBytes(events)

Report whether queued unicast bytes.

ParameterTypeDefaultDescription
eventsdynamic—events value consumed by this operation.

View source

reliableDestination

function reliableDestination(destination)

Return the reliable destination value.

ParameterTypeDefaultDescription
destinationdynamic—destination value consumed by this operation.

View source

restoreMulticasts

function restoreMulticasts(runtime, events)

Restore multicast events after a failed atomic reliable routing attempt.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
eventsdynamic—events value consumed by this operation.

View source

restoreUnicasts

function restoreUnicasts(runtime, events)

Restore unicast events after a failed atomic reliable routing attempt.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
eventsdynamic—events value consumed by this operation.

View source

unicastEntityNumber

function unicastEntityNumber(runtime, entity)

Return the unicast entity number.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
entitydynamic—entity value consumed by this operation.

View source

validateAll

function validateAll(events)

Validate all.

ParameterTypeDefaultDescription
eventsdynamic—events value consumed by this operation.

View source

validateEvent

function validateEvent(event)

Validate event.

ParameterTypeDefaultDescription
eventdynamic—event value consumed by this operation.

View source

validateUnicastAll

function validateUnicastAll(events)

Validate unicast all.

ParameterTypeDefaultDescription
eventsdynamic—events value consumed by this operation.

View source

validateUnicastEvent

function validateUnicastEvent(event)

Validate unicast event.

ParameterTypeDefaultDescription
eventdynamic—event value consumed by this operation.

View source