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.
77 lines
3.7 KiB
C#
77 lines
3.7 KiB
C#
//------------------------------------------------------------------------------
|
|
// <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 newIsTimelineAnother, bool newHitMsg, bool newMHitMsg, bool newLHitMsg, bool newStunHitMsg, 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.MHitMsg = newMHitMsg;
|
|
component.LHitMsg = newLHitMsg;
|
|
component.StunHitMsg = newStunHitMsg;
|
|
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 newIsTimelineAnother, bool newHitMsg, bool newMHitMsg, bool newLHitMsg, bool newStunHitMsg, 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.MHitMsg = newMHitMsg;
|
|
component.LHitMsg = newLHitMsg;
|
|
component.StunHitMsg = newStunHitMsg;
|
|
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;
|
|
}
|
|
}
|
|
}
|