@bitcobblers/wod-wiki-library
Version:
A specialized markdown-like workout syntax editor and runtime for defining workouts
33 lines (32 loc) • 1.28 kB
TypeScript
import { IRuntimeAction } from '../../IRuntimeAction';
import { ITimerRuntime } from '../../ITimerRuntime';
import { JitStatement } from '../../JitStatement';
import { RuntimeBlock } from './RuntimeBlock';
/**
* Represents the root of the execution tree.
* Often wraps a single main block (like a CompoundBlock or RepeatingBlock).
*/
export declare class RootBlock extends RuntimeBlock {
private children;
_sourceIndex: number;
constructor(children: JitStatement[]);
/**
* Implementation of the doEnter hook method from the template pattern
*/
protected onEnter(runtime: ITimerRuntime): IRuntimeAction[];
/**
* Implementation of the doNext hook method from the template pattern
*/ protected onNext(runtime: ITimerRuntime): IRuntimeAction[];
/**
* Implementation of the doLeave hook method from the template pattern
*/
protected onLeave(_runtime: ITimerRuntime): IRuntimeAction[];
/**
* Implementation of the onBlockStart hook method from the template pattern
*/
protected onBlockStart(_runtime: ITimerRuntime): IRuntimeAction[];
/**
* Implementation of the onBlockStop hook method from the template pattern
*/
protected onBlockStop(_runtime: ITimerRuntime): IRuntimeAction[];
}