Skip to content

BuffControl beta ​

TypeAlias of @v12-engine/engine

ts
export type BuffControl = (world: World, carrier: Entity, instance: BuffInstance, dt: number, source: Entity | undefined) => void;

A buff's own control (BuffDef.control in code): run every tick it holds its carrier, in place of the orders it waits on, to steer it as it likes (with moveTo, engage and the like). source is who put it on, while it is there