Started with async inputs to actions

This commit is contained in:
Thaum Rystra
2024-02-19 22:31:18 +02:00
parent 55a6b16c31
commit 3ea492ee78
15 changed files with 180 additions and 57 deletions

View File

@@ -4,6 +4,17 @@ type InputProvider = {
rollDice(
action: EngineAction, dice: { number: number, diceSize: number }[]
): Promise<number[][]>;
/**
* Choose from a provided selection
* @param action
* @param choices Options to choose from
* @param quantity Number of choices to make [min, max] inclusive, where -1 means no limit
*/
choose(
action: EngineAction,
choices: ({ _id: string } & Record<string, any>)[],
quantity?: [min: number, max: number],
): Promise<string[]>;
}
export default InputProvider;