Skip to content

defineTargeting beta ​

Function of @v12-engine/engine

ts
export declare function defineTargeting(def: Targeting): Targeting;

A way of aiming of a game's own: defineTargeting({ id: 'wall', like: 'point', check, indicator }), listed in Rules.targetings and named by an ability's target. Its name is said by declaring it in AbilityTargetings (declare module '@v12-engine/engine' { interface AbilityTargetings { wall: true } }), so that an ability's target: 'wall' is typed