Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

feat: Allow adlib actions to call take #70

Merged
merged 1 commit into from
Sep 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ export interface ActionExecutionContext extends ShowStyleContext {
/** Stop piecesInstances by id. Returns ids of piecesInstances that were removed */
stopPieceInstances(pieceInstanceIds: string[], timeOffset?: number): string[]

/** Set flag to perform take after executing the current action. Returns state of the flag after each call. */
takeAfterExecuteAction(take: boolean): boolean

/** Misc actions */
// updateAction(newManifest: Pick<IBlueprintAdLibActionManifest, 'description' | 'payload'>): void // only updates itself. to allow for the next one to do something different
// executePeripheralDeviceAction(deviceId: string, functionName: string, args: any[]): Promise<any>
Expand Down