Files
zeling_v2/Assets/_Game/Scripts/Animation/IAnimationEventHandler.cs

18 lines
679 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace BaseGames.Animation
{
/// <summary>
/// 动画事件接收接口(架构 §AnimationModule
/// 由 PlayerAnimationEvents / EnemyAnimationEvents 实现。
/// AnimationEventBinder 将 Animancer 回调路由至此接口,避免硬耦合。
/// </summary>
public interface IAnimationEventHandler
{
/// <summary>
/// 处理由 Animancer ClipTransition 触发的动画事件。
/// </summary>
/// <param name="type">事件类型。</param>
/// <param name="payload">附加字符串数据(可为 null 或空)。</param>
void HandleEvent(AnimationEventType type, string payload);
}
}