Function createConstantFuncRunningAction

  • [en] Creates action which executes specified function constantly. Action ends when running count reaches all

    [jp] 指定処理を定期的なタイミングで実行するRunnerAction生成。 アクションは指定回数行ったら終了

    Example

    createConstantRunningAction<EnemyAbstract>(
    firingNum,
    (runner) => {
    const en = runner.target!;
    const b = pickBullet(bulletType);
    b.setActionRunner(...createDroppingActionThread());
    b.copyPosition(en);
    en.sceneRef.addBullet(b);
    },
    firingInterval,
    );

    Type Parameters

    • RT = any

    Parameters

    • executeNum: number
    • executeFunc: ((runner: BaseRunner<RT, string>, i: number, frameCount: number) => any)
        • (runner: BaseRunner<RT, string>, i: number, frameCount: number): any
        • Parameters

          • runner: BaseRunner<RT, string>
          • i: number
          • frameCount: number

          Returns any

    • execInterval: number

    Returns BaseRunnerAction<RT>

Generated using TypeDoc