SpellStyle beta
Interface of @v12-engine/client
export interface SpellStyleWhat 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
auras?(auras: AuraSight[]): void;Called every frame with the units in view that carry a buff this style draws, none of them included
cast
cast?(event: Cast, visual: AbilityLook): void;Called when an ability this style draws goes off
dispose
dispose?(): void;Frees everything the style made: meshes, materials and effects
missiles
missiles?(missiles: MissileSight[]): void;Called every frame with the missiles of this style that can be seen, none of them included
strike
strike?(event: Strike, visual: AbilityLook): void;Called when what an ability this style draws sent on its way arrives
update
update?(dt: number): void;Called every frame with dt seconds since the last, to move what is drawn
warm
warm?(visual: AbilityLook): void;Called once for every visual that uses the style, before anything happens: a chance to get materials ready
windup
windup?(event: Windup, visual: AbilityLook): void;Called when a caster starts to cast an ability this style draws