// Copyright (c) Craftwork Games. All rights reserved. // Licensed under the MIT license. // See LICENSE file in the project root for full license information. using System; namespace MonoGame.Extended.Animations; /// /// Represents an event that occurs during an animation. /// public class AnimationEvent : EventArgs { /// /// Gets the animation controller associated with the event. /// public IAnimationController Animation { get; } /// /// Gets the trigger that caused the event. /// public AnimationEventTrigger Trigger { get; } internal AnimationEvent(IAnimationController animation, AnimationEventTrigger trigger) => (Animation, Trigger) = (animation, trigger); }