//------------------------------------------------------------------------------ // // 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 CombatEntity { public CoreGame.Render.AnimationProxy animationProxy { get { return (CoreGame.Render.AnimationProxy)GetComponent(CombatComponentsLookup.AnimationProxy); } } public bool hasAnimationProxy { get { return HasComponent(CombatComponentsLookup.AnimationProxy); } } public void AddAnimationProxy(CombatEntity newEnt) { var index = CombatComponentsLookup.AnimationProxy; var component = (CoreGame.Render.AnimationProxy)CreateComponent(index, typeof(CoreGame.Render.AnimationProxy)); component.ent = newEnt; AddComponent(index, component); } public void ReplaceAnimationProxy(CombatEntity newEnt) { var index = CombatComponentsLookup.AnimationProxy; var component = (CoreGame.Render.AnimationProxy)CreateComponent(index, typeof(CoreGame.Render.AnimationProxy)); component.ent = newEnt; ReplaceComponent(index, component); } public void RemoveAnimationProxy() { RemoveComponent(CombatComponentsLookup.AnimationProxy); } } //------------------------------------------------------------------------------ // // 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 CombatMatcher { static Entitas.IMatcher _matcherAnimationProxy; public static Entitas.IMatcher AnimationProxy { get { if (_matcherAnimationProxy == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.AnimationProxy); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherAnimationProxy = matcher; } return _matcherAnimationProxy; } } }