pub trait TweenCommand: EntityCommand {
// Required methods
fn config(&self) -> &TweenConfig;
fn config_mut(&mut self) -> &mut TweenConfig;
}Expand description
Helper trait to abstract a tweening animation command.
This is mostly used internally by the AnimatedEntityCommands to tweak
the current animation, while also abstracting the various commands used to
implement the EntityCommandsTweeningExtensions. In general, you probably
don’t have any use for that trait.
Required Methods§
Sourcefn config(&self) -> &TweenConfig
fn config(&self) -> &TweenConfig
Get read-only access to the tween configuration of the command.
Sourcefn config_mut(&mut self) -> &mut TweenConfig
fn config_mut(&mut self) -> &mut TweenConfig
Get mutable access to the tween configuration of the command.