Class CategorizedAnimationWrapper
Wrapper that adds category information to any animation.
public class CategorizedAnimationWrapper : ICategorizedAnimation, IAnimation
- Inheritance
-
CategorizedAnimationWrapper
- Implements
- Inherited Members
Constructors
CategorizedAnimationWrapper(IAnimation, AnimationCategory, IEnumerable<string>?)
public CategorizedAnimationWrapper(IAnimation animation, AnimationCategory category, IEnumerable<string>? affectedNodeIds = null)
Parameters
animationIAnimationcategoryAnimationCategoryaffectedNodeIdsIEnumerable<string>
Properties
AffectedNodeIds
Gets the IDs of nodes affected by this animation (if applicable).
public IReadOnlyCollection<string> AffectedNodeIds { get; }
Property Value
Category
Gets the category of this animation.
public AnimationCategory Category { get; }
Property Value
IsComplete
Gets whether the animation has completed.
public bool IsComplete { get; }
Property Value
Methods
Cancel()
Called when the animation completes or is cancelled.
public void Cancel()
Update(double)
Updates the animation with the elapsed time since the last frame.
public void Update(double deltaTime)
Parameters
deltaTimedoubleTime elapsed since last update in seconds.