Skip to content

ApplierFN

ApplierFN<TComps, TOpt>: (opt, k) => CompList<TComps>

A function that applies components to a Game Object.

Example

extendMaker(
makeBase,
randomOpt,
// This is the applier function
(opt, k) => [
sprite(opt.sprite),
]);

Type parameters

Type parameter
TComps
TOpt

Parameters

ParameterType
optRequired<TOpt>
kKaboomCtx

Returns

CompList<TComps>

Source

kiboom.d.ts:36