MiniQuake2

src/miniquake2/runtime/client_assets.ml

Provides miniquake2 runtime client assets facilities for this project.

Package
miniquake2.runtime.client_assets
Reachable
Yes

Imports

Declarations

attachMixer

function attachMixer(state, effectState, mixer, entityPositionResolver, listenerOrigin, listenerRight)

Attach mixer.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
effectStatedynamic—effectState value consumed by this operation.
mixerdynamic—mixer value consumed by this operation.
entityPositionResolverdynamic—entityPositionResolver value consumed by this operation.
listenerOrigindynamic—listenerOrigin value consumed by this operation.
listenerRightdynamic—listenerRight value consumed by this operation.

View source

bindings

function bindings(state)

Return the bindings value.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source

create

function create(modelLoader, skinLoader, soundLoader, missingCallback)

Creates create for the miniquake2 runtime client assets module.

ParameterTypeDefaultDescription
modelLoaderdynamic—modelLoader value consumed by this operation.
skinLoaderdynamic—skinLoader value consumed by this operation.
soundLoaderdynamic—soundLoader value consumed by this operation.
missingCallbackdynamic—missingCallback value consumed by this operation.

View source

createForRenderer

function createForRenderer(rendererExports, soundLoader, missingCallback)

Create for renderer.

ParameterTypeDefaultDescription
rendererExportsdynamic—rendererExports value consumed by this operation.
soundLoaderdynamic—soundLoader value consumed by this operation.
missingCallbackdynamic—missingCallback value consumed by this operation.

View source

createLenient

function createLenient(modelLoader, skinLoader, soundLoader)

Create lenient.

ParameterTypeDefaultDescription
modelLoaderdynamic—modelLoader value consumed by this operation.
skinLoaderdynamic—skinLoader value consumed by this operation.
soundLoaderdynamic—soundLoader value consumed by this operation.

View source

missingAssets

function missingAssets(state)

Report whether missing assets.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source

refreshClientInfos

function refreshClientInfos(state, configStrings)

Refresh client infos.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
configStringsdynamic—configStrings value consumed by this operation.

View source

refreshConfigStrings

function refreshConfigStrings(state, configStrings)

Refresh config strings.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
configStringsdynamic—configStrings value consumed by this operation.

View source

registerConfigStrings

function registerConfigStrings(state, configStrings, mapName)

Register config strings.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
configStringsdynamic—configStrings value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.

View source

releaseBindings

function releaseBindings()

Release bindings.

View source

reset

function reset(state, mapName)

Performs the reset operation for the miniquake2 runtime client assets module.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
mapNamedynamic—mapName value consumed by this operation.

View source

setMixerListenerEntity

function setMixerListenerEntity(number)

Set mixer listener entity.

ParameterTypeDefaultDescription
numberdynamic—number value consumed by this operation.

View source

syncEntityLoops

function syncEntityLoops(mixer, snapshot)

Synchronize entity loops.

ParameterTypeDefaultDescription
mixerdynamic—mixer value consumed by this operation.
snapshotdynamic—snapshot value consumed by this operation.

View source

syncEntityLoopsPaused

function syncEntityLoopsPaused(mixer, snapshot, paused)

Synchronize or suppress EntityState autosounds for the current pause state.

ParameterTypeDefaultDescription
mixerdynamic—mixer value consumed by this operation.
snapshotdynamic—snapshot value consumed by this operation.
pauseddynamic—paused value consumed by this operation.

View source