Files
src/miniquake2/client/effects/handoff.ml
Provides miniquake2 client effects handoff facilities for this project.
- Package
miniquake2.client.effects.handoff- Reachable
- Yes
Imports
Declarations
# appendBeamEntities
function appendBeamEntities(output, count, maximum, beam, now, modelResolver, refDef)
Append beam entities.
| Parameter | Type | Default | Description |
|---|
output | dynamic | — | Output collection or buffer populated by the operation. |
count | dynamic | — | Number of items or units to process. |
maximum | dynamic | — | maximum value consumed by this operation. |
beam | dynamic | — | beam value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
modelResolver | dynamic | — | modelResolver value consumed by this operation. |
refDef | dynamic | — | refDef value consumed by this operation. |
View source
# appendLimited
function appendLimited(values, additions, maximum)
Append limited.
| Parameter | Type | Default | Description |
|---|
values | dynamic | — | values value consumed by this operation. |
additions | dynamic | — | additions value consumed by this operation. |
maximum | dynamic | — | maximum value consumed by this operation. |
View source
# apply
function apply(state, refDef, now, modelResolver)
Apply state.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
refDef | dynamic | — | refDef value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
modelResolver | dynamic | — | modelResolver value consumed by this operation. |
View source
# applyPrepared
function applyPrepared(state, refDef, now, modelResolver)
Product rendering calls entity.emit first, which already advances the shared effect state. Keep that prepared path separate so one frame never scans and compacts every effect collection twice at the same timestamp.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
refDef | dynamic | — | refDef value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
modelResolver | dynamic | — | modelResolver value consumed by this operation. |
View source
# beamOrigin
function beamOrigin(beam, refDef)
Return the beam origin.
| Parameter | Type | Default | Description |
|---|
beam | dynamic | — | beam value consumed by this operation. |
refDef | dynamic | — | refDef value consumed by this operation. |
View source
# explosionAlpha
function explosionAlpha(explosion, now)
Return the explosion alpha value.
| Parameter | Type | Default | Description |
|---|
explosion | dynamic | — | explosion value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
View source
# explosionEntity
function explosionEntity(explosion, now, modelResolver)
Return the explosion entity value.
| Parameter | Type | Default | Description |
|---|
explosion | dynamic | — | explosion value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
modelResolver | dynamic | — | modelResolver value consumed by this operation. |
View source
# explosionFrame
function explosionFrame(explosion, now)
Return the explosion frame value.
| Parameter | Type | Default | Description |
|---|
explosion | dynamic | — | explosion value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
View source
# laserEntity
function laserEntity(laser)
Return the laser entity value.
| Parameter | Type | Default | Description |
|---|
laser | dynamic | — | laser value consumed by this operation. |
View source
# particleOrigin
function particleOrigin(particle, now)
Return the particle origin.
| Parameter | Type | Default | Description |
|---|
particle | dynamic | — | particle value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
View source
# rendererDLights
function rendererDLights(state)
Return the renderer d lights value.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
View source
# rendererParticles
function rendererParticles(state, now)
Return the renderer particles value.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
now | dynamic | — | now value consumed by this operation. |
View source
# trim
function trim(values, count)
Trim state.
| Parameter | Type | Default | Description |
|---|
values | dynamic | — | values value consumed by this operation. |
count | dynamic | — | Number of items or units to process. |
View source