interactionWasUpdated(_:snapshot:)

Called whenever any interaction (local or remote) is updated. For local interactions, each interactionWasUpdated callback occurs immediately before the TabletopInteraction.Delegate.update() callback with the same TabletopInteraction.Value and the same snapshot as is accessed by game.withCurrentSnapshot. For remote interactions, interactionWasUpdated callbacks are only guaranteed to occur when the phase or controlledEquipment are updated and the TabletopInteraction.Value indicates only the limited information available about remote interactions viewed over the network. Due to network shared state resolution, remote interactions may not always present interactionWasUpdated callbacks with a completely coherent phase order (i.e. .started then .update(s) then .ended/.cancelled) or present a final value matching the corresponding TableCursor API value.

Declaration

func interactionWasUpdated(_ value: TabletopInteraction.Value, snapshot: TableSnapshot)