//------------------------------------------------------------------------------ // // 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.NavAgentProxy navAgentProxy { get { return (CoreGame.Render.NavAgentProxy)GetComponent(CombatComponentsLookup.NavAgentProxy); } } public bool hasNavAgentProxy { get { return HasComponent(CombatComponentsLookup.NavAgentProxy); } } public void AddNavAgentProxy(CombatEntity newEnt) { var index = CombatComponentsLookup.NavAgentProxy; var component = (CoreGame.Render.NavAgentProxy)CreateComponent(index, typeof(CoreGame.Render.NavAgentProxy)); component.ent = newEnt; AddComponent(index, component); } public void ReplaceNavAgentProxy(CombatEntity newEnt) { var index = CombatComponentsLookup.NavAgentProxy; var component = (CoreGame.Render.NavAgentProxy)CreateComponent(index, typeof(CoreGame.Render.NavAgentProxy)); component.ent = newEnt; ReplaceComponent(index, component); } public void RemoveNavAgentProxy() { RemoveComponent(CombatComponentsLookup.NavAgentProxy); } } //------------------------------------------------------------------------------ // // 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 _matcherNavAgentProxy; public static Entitas.IMatcher NavAgentProxy { get { if (_matcherNavAgentProxy == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.NavAgentProxy); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherNavAgentProxy = matcher; } return _matcherNavAgentProxy; } } }