Add documentation about what needs to be awaited in SpeedProvider.onMovementHistoryUpdate

This commit is contained in:
Manuel Vögele
2021-04-30 10:26:37 +02:00
parent 3be898e49c
commit 39a0787c79
+3 -1
View File
@@ -86,7 +86,9 @@ export class SpeedProvider {
/**
* This hook is being called after Drag Ruler has updated the movement history for one or more tokens.
* It'll receive an array of tokens that have been updated
* It'll receive an array of tokens that have been updated.
* If your speed provider is storing any additional values that are relevant for the movement history, this function should
* await until those updates have completed inside foundry.
*/
async onMovementHistoryUpdate(tokens) {}