//------------------------------------------------------------------------------ // // 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.BindPointProxy bindPointProxy { get { return (CoreGame.Render.BindPointProxy)GetComponent(CombatComponentsLookup.BindPointProxy); } } public bool hasBindPointProxy { get { return HasComponent(CombatComponentsLookup.BindPointProxy); } } public void AddBindPointProxy(CombatEntity newEnt) { var index = CombatComponentsLookup.BindPointProxy; var component = (CoreGame.Render.BindPointProxy)CreateComponent(index, typeof(CoreGame.Render.BindPointProxy)); component.ent = newEnt; AddComponent(index, component); } public void ReplaceBindPointProxy(CombatEntity newEnt) { var index = CombatComponentsLookup.BindPointProxy; var component = (CoreGame.Render.BindPointProxy)CreateComponent(index, typeof(CoreGame.Render.BindPointProxy)); component.ent = newEnt; ReplaceComponent(index, component); } public void RemoveBindPointProxy() { RemoveComponent(CombatComponentsLookup.BindPointProxy); } } //------------------------------------------------------------------------------ // // 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 _matcherBindPointProxy; public static Entitas.IMatcher BindPointProxy { get { if (_matcherBindPointProxy == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.BindPointProxy); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherBindPointProxy = matcher; } return _matcherBindPointProxy; } } }