2
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
3.4 KiB
C#

2 years ago
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
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);
}
}
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
public sealed partial class GameMatcher
{
static Entitas.IMatcher<GameEntity> _matcherAnimation;
public static Entitas.IMatcher<GameEntity> Animation
{
get
{
if (_matcherAnimation == null)
{
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Animation);
matcher.componentNames = GameComponentsLookup.componentNames;
_matcherAnimation = matcher;
}
return _matcherAnimation;
}
}
}