PlayerAction typedef

PlayerAction = Animatable Function(double duration)

The type for a Player action function.

The duration is the time that is available to the action (in seconds).

The function must return an Animatable or null if there is nothing to be animated.

Implementation

typedef Animatable PlayerAction(double duration);