//------------------------------------------------------------------------------ // // 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.LifeBindMeComponent lifeBindMe { get { return (CoreGame.Render.LifeBindMeComponent)GetComponent(CombatComponentsLookup.LifeBindMe); } } public bool hasLifeBindMe { get { return HasComponent(CombatComponentsLookup.LifeBindMe); } } public void AddLifeBindMe(CombatEntity newOwner) { var index = CombatComponentsLookup.LifeBindMe; var component = (CoreGame.Render.LifeBindMeComponent)CreateComponent(index, typeof(CoreGame.Render.LifeBindMeComponent)); component.owner = newOwner; AddComponent(index, component); } public void ReplaceLifeBindMe(CombatEntity newOwner) { var index = CombatComponentsLookup.LifeBindMe; var component = (CoreGame.Render.LifeBindMeComponent)CreateComponent(index, typeof(CoreGame.Render.LifeBindMeComponent)); component.owner = newOwner; ReplaceComponent(index, component); } public void RemoveLifeBindMe() { RemoveComponent(CombatComponentsLookup.LifeBindMe); } } //------------------------------------------------------------------------------ // // 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 _matcherLifeBindMe; public static Entitas.IMatcher LifeBindMe { get { if (_matcherLifeBindMe == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.LifeBindMe); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherLifeBindMe = matcher; } return _matcherLifeBindMe; } } }