# baseDestination
function baseDestination(destination)Return the base destination value.
| Parameter | Type | Default | Description |
|---|---|---|---|
destination | dynamic | — | destination value consumed by this operation. |
src/miniquake2/server/game_messages.mlProvides miniquake2 server game messages facilities for this project.
miniquake2/game/constants.ml as sgmgc → src/miniquake2/game/constants.mlminiquake2/protocol/constants.ml as sgmpc → src/miniquake2/protocol/constants.mlminiquake2/qcommon/types.ml as sgmqtypes → src/miniquake2/qcommon/types.mlminiquake2/server/types.ml as sgmtypes → src/miniquake2/server/types.mlfunction baseDestination(destination)Return the base destination value.
| Parameter | Type | Default | Description |
|---|---|---|---|
destination | dynamic | — | destination value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
function clearMulticasts(runtime)Clear multicast queue state while retaining its fixed storage.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
function clearUnicasts(runtime)Clear unicast queue state while retaining its fixed storage.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
function copiedOrigin(origin)Return the copied origin.
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | dynamic | — | origin value consumed by this operation. |
function copyPayload(payload)Copy payload data.
| Parameter | Type | Default | Description |
|---|---|---|---|
payload | dynamic | — | payload value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
function enqueue(runtime, origin, destination, payload)Return the enqueue value.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
destination | dynamic | — | destination value consumed by this operation. |
payload | dynamic | — | payload value consumed by this operation. |
function enqueueUnicast(runtime, entity, reliable, payload)Return the enqueue unicast value.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
reliable | dynamic | — | reliable value consumed by this operation. |
payload | dynamic | — | payload value consumed by this operation. |
const MAX_MULTICAST_FRAGMENT_BYTES = 1392Defines the max multicast fragment bytes constant used by the miniquake2 server game messages module.
const MAX_PENDING_MULTICAST_BYTES = 88576Defines the max pending multicast bytes constant used by the miniquake2 server game messages module.
const MAX_PENDING_MULTICAST_EVENTS = 256Defines the max pending multicast events constant used by the miniquake2 server game messages module.
const MAX_PENDING_UNICAST_BYTES = 88576Defines the max pending unicast bytes constant used by the miniquake2 server game messages module.
const MAX_PENDING_UNICAST_EVENTS = 256Defines the max pending unicast events constant used by the miniquake2 server game messages module.
function numeric(value)Performs the numeric operation for the miniquake2 server game messages module.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function pendingMulticastSnapshot(runtime)Copy the active multicast prefix for one routing transaction.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
function pendingUnicastSnapshot(runtime)Copy the active unicast prefix for one routing transaction.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
function queuedBytes(events)Report whether queued bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
events | dynamic | — | events value consumed by this operation. |
function queuedUnicastBytes(events)Report whether queued unicast bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
events | dynamic | — | events value consumed by this operation. |
function reliableDestination(destination)Return the reliable destination value.
| Parameter | Type | Default | Description |
|---|---|---|---|
destination | dynamic | — | destination value consumed by this operation. |
function restoreMulticasts(runtime, events)Restore multicast events after a failed atomic reliable routing attempt.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
events | dynamic | — | events value consumed by this operation. |
function restoreUnicasts(runtime, events)Restore unicast events after a failed atomic reliable routing attempt.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
events | dynamic | — | events value consumed by this operation. |
function unicastEntityNumber(runtime, entity)Return the unicast entity number.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
function validateAll(events)Validate all.
| Parameter | Type | Default | Description |
|---|---|---|---|
events | dynamic | — | events value consumed by this operation. |
function validateEvent(event)Validate event.
| Parameter | Type | Default | Description |
|---|---|---|---|
event | dynamic | — | event value consumed by this operation. |
function validateUnicastAll(events)Validate unicast all.
| Parameter | Type | Default | Description |
|---|---|---|---|
events | dynamic | — | events value consumed by this operation. |
function validateUnicastEvent(event)Validate unicast event.
| Parameter | Type | Default | Description |
|---|---|---|---|
event | dynamic | — | event value consumed by this operation. |