Files
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.
| Parameter | Type | Default | Description |
|---|
output | dynamic | — | Output collection or buffer populated by the operation. |
count | dynamic | — | Number of items or units to process. |
origin | dynamic | — | origin value consumed by this operation. |
intensity | dynamic | — | intensity value consumed by this operation. |
red | dynamic | — | red value consumed by this operation. |
green | dynamic | — | green value consumed by this operation. |
blue | dynamic | — | blue value consumed by this operation. |
View source
# arrayOrigin
inline function arrayOrigin(value)
Return the array origin.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
View source
# compactLights
function compactLights(values, count)
Return the compact lights value.
| Parameter | Type | Default | Description |
|---|
values | dynamic | — | values value consumed by this operation. |
count | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
currentSnapshot | dynamic | — | currentSnapshot value consumed by this operation. |
previousSnapshot | dynamic | — | previousSnapshot value consumed by this operation. |
fraction | dynamic | — | fraction value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
localEntityNumber | dynamic | — | localEntityNumber value consumed by this operation. |
refDef | dynamic | — | refDef value consumed by this operation. |
View source
# emitAutomatic
function emitAutomatic(state, trail, entity, startPosition, endPosition, now, lights, lightCount)
Emit automatic.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
trail | dynamic | — | trail value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
startPosition | dynamic | — | startPosition value consumed by this operation. |
endPosition | dynamic | — | endPosition value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
lights | dynamic | — | lights value consumed by this operation. |
lightCount | dynamic | — | Number of light to process. |
View source
# emitLocalLight
function emitLocalLight(lights, lightCount, effects, origin, now)
Emit local light.
| Parameter | Type | Default | Description |
|---|
lights | dynamic | — | lights value consumed by this operation. |
lightCount | dynamic | — | Number of light to process. |
effects | dynamic | — | effects value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
View source
# emitSpinningLight
function emitSpinningLight(lights, lightCount, entity, origin, now)
Emit spinning light.
| Parameter | Type | Default | Description |
|---|
lights | dynamic | — | lights value consumed by this operation. |
lightCount | dynamic | — | Number of light to process. |
entity | dynamic | — | entity value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
View source
# interpolatedOrigin
inline function interpolatedOrigin(previous, current, fraction, reset)
Return the interpolated origin.
| Parameter | Type | Default | Description |
|---|
previous | dynamic | — | previous value consumed by this operation. |
current | dynamic | — | current value consumed by this operation. |
fraction | dynamic | — | fraction value consumed by this operation. |
reset | dynamic | — | reset value consumed by this operation. |
View source
# requiresReset
inline function requiresReset(previous, current)
Reset requires.
| Parameter | Type | Default | Description |
|---|
previous | dynamic | — | previous value consumed by this operation. |
current | dynamic | — | current value consumed by this operation. |
View source