Files
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.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
effectState | dynamic | — | effectState value consumed by this operation. |
mixer | dynamic | — | mixer value consumed by this operation. |
entityPositionResolver | dynamic | — | entityPositionResolver value consumed by this operation. |
listenerOrigin | dynamic | — | listenerOrigin value consumed by this operation. |
listenerRight | dynamic | — | listenerRight value consumed by this operation. |
View source
# bindings
function bindings(state)
Return the bindings value.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
modelLoader | dynamic | — | modelLoader value consumed by this operation. |
skinLoader | dynamic | — | skinLoader value consumed by this operation. |
soundLoader | dynamic | — | soundLoader value consumed by this operation. |
missingCallback | dynamic | — | missingCallback value consumed by this operation. |
View source
# createForRenderer
function createForRenderer(rendererExports, soundLoader, missingCallback)
Create for renderer.
| Parameter | Type | Default | Description |
|---|
rendererExports | dynamic | — | rendererExports value consumed by this operation. |
soundLoader | dynamic | — | soundLoader value consumed by this operation. |
missingCallback | dynamic | — | missingCallback value consumed by this operation. |
View source
# createLenient
function createLenient(modelLoader, skinLoader, soundLoader)
Create lenient.
| Parameter | Type | Default | Description |
|---|
modelLoader | dynamic | — | modelLoader value consumed by this operation. |
skinLoader | dynamic | — | skinLoader value consumed by this operation. |
soundLoader | dynamic | — | soundLoader value consumed by this operation. |
View source
# missingAssets
function missingAssets(state)
Report whether missing assets.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
View source
# refreshClientInfos
function refreshClientInfos(state, configStrings)
Refresh client infos.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
configStrings | dynamic | — | configStrings value consumed by this operation. |
View source
# refreshConfigStrings
function refreshConfigStrings(state, configStrings)
Refresh config strings.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
configStrings | dynamic | — | configStrings value consumed by this operation. |
View source
# registerConfigStrings
function registerConfigStrings(state, configStrings, mapName)
Register config strings.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
configStrings | dynamic | — | configStrings value consumed by this operation. |
mapName | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
View source
# setMixerListenerEntity
function setMixerListenerEntity(number)
Set mixer listener entity.
| Parameter | Type | Default | Description |
|---|
number | dynamic | — | number value consumed by this operation. |
View source
# syncEntityLoops
function syncEntityLoops(mixer, snapshot)
Synchronize entity loops.
| Parameter | Type | Default | Description |
|---|
mixer | dynamic | — | mixer value consumed by this operation. |
snapshot | dynamic | — | snapshot value consumed by this operation. |
View source
# syncEntityLoopsPaused
function syncEntityLoopsPaused(mixer, snapshot, paused)
Synchronize or suppress EntityState autosounds for the current pause state.
| Parameter | Type | Default | Description |
|---|
mixer | dynamic | — | mixer value consumed by this operation. |
snapshot | dynamic | — | snapshot value consumed by this operation. |
paused | dynamic | — | paused value consumed by this operation. |
View source