| 12345678910111213141516171819202122232425 |
- // 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;
- /// <summary>
- /// Represents an event that occurs during an animation.
- /// </summary>
- public class AnimationEvent : EventArgs
- {
- /// <summary>
- /// Gets the animation controller associated with the event.
- /// </summary>
- public IAnimationController Animation { get; }
- /// <summary>
- /// Gets the trigger that caused the event.
- /// </summary>
- public AnimationEventTrigger Trigger { get; }
- internal AnimationEvent(IAnimationController animation, AnimationEventTrigger trigger) => (Animation, Trigger) = (animation, trigger);
- }
|