Skip to content

1681-engine / index / LifeSource

Type Alias: LifeSource<T> ​

ts
type LifeSource<T> = (view, random) => T | null;

Defined in: src/ambient/life/lifeMotion.ts:30

Hands back somewhere to be: inside the camera's view, or null when there is nowhere there now.

Type Parameters ​

Type ParameterDefault type
T extends LifeBoxLifeBox

Parameters ​

ParameterType
viewViewRect
random() => number

Returns ​

T | null

Released under the MIT License.