@cccode/fxr - v22.0.0

    Interface IConfig

    interface IConfig {
        type: ConfigType;
        clone(): IConfig;
        getActionCount(game: Game): number;
        getActions(game: Game): AnyAction[];
        minify(): this;
        scale(factor: number, options?: { mode?: ScalingMode }): this;
        serialize(options?: FXRSerializeOptions): any;
        toJSON(): any;
        walkActions(): Generator<AnyAction>;
    }

    Implemented by

    Index

    Properties

    Methods

    • Returns the number of actions this config will contain if written to the given game's structure.

      Parameters

      Returns number

    • Returns and array of the actions this config will contain if written to the given game's structure.

      Parameters

      Returns AnyAction[]

    • Scale the config by the given factor. This can be used to change the size of effect created by the config.

      Parameters

      Returns this

    MMNEPVFCICPMFPCPTTAAATR