Class CommonExtensions
- Namespace
- FriedSynapse.FlowEnt
public static class CommonExtensions
- Inheritance
-
CommonExtensions
- Inherited Members
Methods
Build(IEnumerable<IAbstractAnimationBuilder>)
public static IEnumerable<AbstractAnimation> Build(this IEnumerable<IAbstractAnimationBuilder> animationsBuilders)
Parameters
animationsBuilders
IEnumerable<IAbstractAnimationBuilder>
Returns
Debug(Echo, string)
Applies a DebugMotion to the echo.
public static Echo Debug(this Echo echo, string name = null)
Parameters
Returns
Debug(Tween, string)
Applies a DebugMotion to the tween.
public static Tween Debug(this Tween tween, string name = null)
Parameters
Returns
Echo<TItem>(TItem, EchoOptions)
Creates a Echo and a EchoMotionProxy<TItem> for the item with the selected options.
public static EchoMotionProxy<TItem> Echo<TItem>(this TItem item, EchoOptions options)
Parameters
item
TItemoptions
EchoOptions
Returns
- EchoMotionProxy<TItem>
Type Parameters
TItem
Echo<TItem>(TItem, float?, bool)
Creates a Echo and a EchoMotionProxy<TItem> for the item with the selected params.
public static EchoMotionProxy<TItem> Echo<TItem>(this TItem item, float? timeout = null, bool autoStart = false)
Parameters
Returns
- EchoMotionProxy<TItem>
Type Parameters
TItem
Pause(IEnumerable<AbstractAnimation>)
public static IEnumerable<AbstractAnimation> Pause(this IEnumerable<AbstractAnimation> animations)
Parameters
animations
IEnumerable<AbstractAnimation>
Returns
Reset(IEnumerable<AbstractAnimation>)
public static IEnumerable<AbstractAnimation> Reset(this IEnumerable<AbstractAnimation> animations)
Parameters
animations
IEnumerable<AbstractAnimation>
Returns
Restart<TAnimation>(TAnimation)
Restarts the animation by calling Stop(bool), Reset(), Start() in this order.
public static TAnimation Restart<TAnimation>(this TAnimation animation) where TAnimation : AbstractAnimation
Parameters
animation
TAnimation
Returns
- TAnimation
Type Parameters
TAnimation
Resume(IEnumerable<AbstractAnimation>)
public static IEnumerable<AbstractAnimation> Resume(this IEnumerable<AbstractAnimation> animations)
Parameters
animations
IEnumerable<AbstractAnimation>
Returns
Start(IEnumerable<AbstractAnimation>)
public static IEnumerable<AbstractAnimation> Start(this IEnumerable<AbstractAnimation> animations)
Parameters
animations
IEnumerable<AbstractAnimation>
Returns
StartAsync(IEnumerable<AbstractAnimation>)
public static Task<IEnumerable<AbstractAnimation>> StartAsync(this IEnumerable<AbstractAnimation> animations)
Parameters
animations
IEnumerable<AbstractAnimation>
Returns
Stop(IEnumerable<AbstractAnimation>, bool)
public static IEnumerable<AbstractAnimation> Stop(this IEnumerable<AbstractAnimation> animations, bool triggerOnCompleted = false)
Parameters
animations
IEnumerable<AbstractAnimation>triggerOnCompleted
bool
Returns
Tween<TItem>(TItem, TweenOptions)
Creates a Tween and a TweenMotionProxy<TItem> for the item with the selected options.
public static TweenMotionProxy<TItem> Tween<TItem>(this TItem item, TweenOptions options)
Parameters
item
TItemoptions
TweenOptions
Returns
- TweenMotionProxy<TItem>
Type Parameters
TItem
Tween<TItem>(TItem, float, bool)
Creates a Tween and a TweenMotionProxy<TItem> for the item with the selected params.
public static TweenMotionProxy<TItem> Tween<TItem>(this TItem item, float time = 1, bool autoStart = false)
Parameters
Returns
- TweenMotionProxy<TItem>
Type Parameters
TItem