EffectType beta
Interface of @v12-engine/engine
ts
export interface EffectType<K extends keyof EffectTypes = keyof EffectTypes>A kind of effect: its type and what it does (defineEffect). The engine's are the game's from the start; a game lists its own in Rules.effects, and one of a type the engine has takes its place
Members
fields
ts
readonly fields?: readonly EditableField[];The fields an effect of the type reads, besides those every effect has (EffectCommon): what the editor's Data panel offers on a row of the type (campaign plan RC2). None said, it offers those a row has
of
ts
of(fields: EffectCommon & EffectTypes[K]): EffectOf<K>;An effect of the type, for an ability's list: pull.of({ distance: 3 }) is { type: 'pull', distance: 3 }
run
ts
run(context: EffectContext, effect: EffectOf<K>): void;Carries out an effect of the type, for a cast (or a passive asked, a missile's hit...)
type
ts
readonly type: K;The effect type this is the definition of: the type an effect of it carries in an ability's list