//------------------------------------------------------------------------------
// 
//     This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityApiGenerator.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// 
//------------------------------------------------------------------------------
public partial class GameEntity
{
    public AnimationComponent animation { get { return (AnimationComponent)GetComponent(GameComponentsLookup.Animation); } }
    public bool hasAnimation { get { return HasComponent(GameComponentsLookup.Animation); } }
    public void AddAnimation(UnityEngine.Animator newAnimator, UnityEngine.AnimatorOverrideController newAnimatorOverrideController, bool newIsFreeControl, bool newIsTimelineAnother, bool newHitMsg, bool newAirHitMsg, bool newReboundMsg, bool newDieMsg, bool newResetMsg)
    {
        var index = GameComponentsLookup.Animation;
        var component = (AnimationComponent)CreateComponent(index, typeof(AnimationComponent));
        component.Animator = newAnimator;
        component.AnimatorOverrideController = newAnimatorOverrideController;
        component.IsTimelineAnother = newIsTimelineAnother;
        component.HitMsg = newHitMsg;
        component.AirHitMsg = newAirHitMsg;
        component.ReboundMsg = newReboundMsg;
        component.DieMsg = newDieMsg;
        component.ResetMsg = newResetMsg;
        AddComponent(index, component);
    }
    public void ReplaceAnimation(UnityEngine.Animator newAnimator, UnityEngine.AnimatorOverrideController newAnimatorOverrideController, bool newIsFreeControl, bool newIsTimelineAnother, bool newHitMsg, bool newAirHitMsg, bool newReboundMsg, bool newDieMsg, bool newResetMsg)
    {
        var index = GameComponentsLookup.Animation;
        var component = (AnimationComponent)CreateComponent(index, typeof(AnimationComponent));
        component.Animator = newAnimator;
        component.AnimatorOverrideController = newAnimatorOverrideController;
        component.IsTimelineAnother = newIsTimelineAnother;
        component.HitMsg = newHitMsg;
        component.AirHitMsg = newAirHitMsg;
        component.ReboundMsg = newReboundMsg;
        component.DieMsg = newDieMsg;
        component.ResetMsg = newResetMsg;
        ReplaceComponent(index, component);
    }
    public void RemoveAnimation()
    {
        RemoveComponent(GameComponentsLookup.Animation);
    }
}
//------------------------------------------------------------------------------
// 
//     This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherApiGenerator.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// 
//------------------------------------------------------------------------------
public sealed partial class GameMatcher
{
    static Entitas.IMatcher _matcherAnimation;
    public static Entitas.IMatcher Animation
    {
        get
        {
            if (_matcherAnimation == null)
            {
                var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.Animation);
                matcher.componentNames = GameComponentsLookup.componentNames;
                _matcherAnimation = matcher;
            }
            return _matcherAnimation;
        }
    }
}