using System; using XGame.Database; namespace FL.Battle.Components { /// /// 动作组件接口 /// public interface IAnimator { void Play(EAnimationName aniName); void Play(AnimationPlayArgs args); } public struct AnimationPlayArgs { public EAnimationName aniName; /// /// 攻击,技能动作默认回退动作 /// 节省一个外部回调 /// 可循环的动作(待机、移动等)该参数无效 /// public EAnimationName fallback; /// /// 触发器的时间 /// 单位:毫秒 /// onTrigger不为空且该值大于零小于动作时长时有效 /// public int triggerFrame; /// /// 触发器回调 /// public Action onTrigger; public Action onCompleted; } }