MiniQuake2

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.

ParameterTypeDefaultDescription
outputdynamic—Output collection or buffer populated by the operation.
countdynamic—Number of items or units to process.
maximumdynamic—maximum value consumed by this operation.
beamdynamic—beam value consumed by this operation.
nowdynamic—now value consumed by this operation.
modelResolverdynamic—modelResolver value consumed by this operation.
refDefdynamic—refDef value consumed by this operation.

View source

appendLimited

function appendLimited(values, additions, maximum)

Append limited.

ParameterTypeDefaultDescription
valuesdynamic—values value consumed by this operation.
additionsdynamic—additions value consumed by this operation.
maximumdynamic—maximum value consumed by this operation.

View source

apply

function apply(state, refDef, now, modelResolver)

Apply state.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
refDefdynamic—refDef value consumed by this operation.
nowdynamic—now value consumed by this operation.
modelResolverdynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
refDefdynamic—refDef value consumed by this operation.
nowdynamic—now value consumed by this operation.
modelResolverdynamic—modelResolver value consumed by this operation.

View source

beamOrigin

function beamOrigin(beam, refDef)

Return the beam origin.

ParameterTypeDefaultDescription
beamdynamic—beam value consumed by this operation.
refDefdynamic—refDef value consumed by this operation.

View source

explosionAlpha

function explosionAlpha(explosion, now)

Return the explosion alpha value.

ParameterTypeDefaultDescription
explosiondynamic—explosion value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

explosionEntity

function explosionEntity(explosion, now, modelResolver)

Return the explosion entity value.

ParameterTypeDefaultDescription
explosiondynamic—explosion value consumed by this operation.
nowdynamic—now value consumed by this operation.
modelResolverdynamic—modelResolver value consumed by this operation.

View source

explosionFrame

function explosionFrame(explosion, now)

Return the explosion frame value.

ParameterTypeDefaultDescription
explosiondynamic—explosion value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

laserEntity

function laserEntity(laser)

Return the laser entity value.

ParameterTypeDefaultDescription
laserdynamic—laser value consumed by this operation.

View source

particleOrigin

function particleOrigin(particle, now)

Return the particle origin.

ParameterTypeDefaultDescription
particledynamic—particle value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

rendererDLights

function rendererDLights(state)

Return the renderer d lights value.

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

View source

rendererParticles

function rendererParticles(state, now)

Return the renderer particles value.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
nowdynamic—now value consumed by this operation.

View source

trim

function trim(values, count)

Trim state.

ParameterTypeDefaultDescription
valuesdynamic—values value consumed by this operation.
countdynamic—Number of items or units to process.

View source