Skip to content

SpellStyle beta ​

Interface of @v12-engine/client

ts
export interface SpellStyle

What abilities of one kind look like. A style is told what happens and draws it, every part of it is optional: a style for something thrown only cares about missiles, one for a blast only about casts.

Members ​

auras ​

ts
auras?(auras: AuraSight[]): void;

Called every frame with the units in view that carry a buff this style draws, none of them included

cast ​

ts
cast?(event: Cast, visual: AbilityLook): void;

Called when an ability this style draws goes off

dispose ​

ts
dispose?(): void;

Frees everything the style made: meshes, materials and effects

missiles ​

ts
missiles?(missiles: MissileSight[]): void;

Called every frame with the missiles of this style that can be seen, none of them included

strike ​

ts
strike?(event: Strike, visual: AbilityLook): void;

Called when what an ability this style draws sent on its way arrives

update ​

ts
update?(dt: number): void;

Called every frame with dt seconds since the last, to move what is drawn

warm ​

ts
warm?(visual: AbilityLook): void;

Called once for every visual that uses the style, before anything happens: a chance to get materials ready

windup ​

ts
windup?(event: Windup, visual: AbilityLook): void;

Called when a caster starts to cast an ability this style draws