UNPKG

@rbxts/mechanism

Version:

An elegant composable input library for Roblox

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