MiniQuake2

src/miniquake2/client/effects/entity.ml

Provides miniquake2 client effects entity facilities for this project.

Package
miniquake2.client.effects.entity
Reachable
Yes

Imports

Declarations

appendLight

function appendLight(output, count, origin, intensity, red, green, blue)

Append light.

ParameterTypeDefaultDescription
outputdynamic—Output collection or buffer populated by the operation.
countdynamic—Number of items or units to process.
origindynamic—origin value consumed by this operation.
intensitydynamic—intensity value consumed by this operation.
reddynamic—red value consumed by this operation.
greendynamic—green value consumed by this operation.
bluedynamic—blue value consumed by this operation.

View source

arrayOrigin

inline function arrayOrigin(value)

Return the array origin.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

compactLights

function compactLights(values, count)

Return the compact lights value.

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

View source

emit

function emit(state, currentSnapshot, previousSnapshot, fraction, now, localEntityNumber, refDef)

Performs the emit operation for the miniquake2 client effects entity module.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
currentSnapshotdynamic—currentSnapshot value consumed by this operation.
previousSnapshotdynamic—previousSnapshot value consumed by this operation.
fractiondynamic—fraction value consumed by this operation.
nowdynamic—now value consumed by this operation.
localEntityNumberdynamic—localEntityNumber value consumed by this operation.
refDefdynamic—refDef value consumed by this operation.

View source

emitAutomatic

function emitAutomatic(state, trail, entity, startPosition, endPosition, now, lights, lightCount)

Emit automatic.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
traildynamic—trail value consumed by this operation.
entitydynamic—entity value consumed by this operation.
startPositiondynamic—startPosition value consumed by this operation.
endPositiondynamic—endPosition value consumed by this operation.
nowdynamic—now value consumed by this operation.
lightsdynamic—lights value consumed by this operation.
lightCountdynamic—Number of light to process.

View source

emitLocalLight

function emitLocalLight(lights, lightCount, effects, origin, now)

Emit local light.

ParameterTypeDefaultDescription
lightsdynamic—lights value consumed by this operation.
lightCountdynamic—Number of light to process.
effectsdynamic—effects value consumed by this operation.
origindynamic—origin value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

emitSpinningLight

function emitSpinningLight(lights, lightCount, entity, origin, now)

Emit spinning light.

ParameterTypeDefaultDescription
lightsdynamic—lights value consumed by this operation.
lightCountdynamic—Number of light to process.
entitydynamic—entity value consumed by this operation.
origindynamic—origin value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

interpolatedOrigin

inline function interpolatedOrigin(previous, current, fraction, reset)

Return the interpolated origin.

ParameterTypeDefaultDescription
previousdynamic—previous value consumed by this operation.
currentdynamic—current value consumed by this operation.
fractiondynamic—fraction value consumed by this operation.
resetdynamic—reset value consumed by this operation.

View source

requiresReset

inline function requiresReset(previous, current)

Reset requires.

ParameterTypeDefaultDescription
previousdynamic—previous value consumed by this operation.
currentdynamic—current value consumed by this operation.

View source