UNPKG

@rbxts/mechanism

Version:

An elegant composable input library for Roblox

20 lines (19 loc) 1.05 kB
import { StandardAction } from "./standard-action"; export declare abstract class SequentialAction extends StandardAction { readonly timing: number; private rawInputIndex; private lastTap; private firstInput; /** @hidden */ handleInput(input: InputObject, processed: boolean, isPress?: boolean): void; } export declare class SequentialActionBuilder extends SequentialAction { /** Sets the ID of the action */ setID(this: Writable<SequentialActionBuilder>, id: string | number): SequentialActionBuilder; /** Sets whether the action is activated when gameProcessedEvent is true */ setProcessed(this: Writable<SequentialActionBuilder>, processed: boolean): SequentialActionBuilder; /** Sets a time to wait between each activation of the action */ setCooldown(this: Writable<SequentialActionBuilder>, cooldown: number): SequentialActionBuilder; /** Sets the maximum time in between inputs in the sequence */ setTiming(this: Writable<SequentialActionBuilder>, timing: number): SequentialActionBuilder; }