//------------------------------------------------------------------------------ // // 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.CommandReceiverComponent commandReceiver { get { return (CoreGame.Render.CommandReceiverComponent)GetComponent(CombatComponentsLookup.CommandReceiver); } } public bool hasCommandReceiver { get { return HasComponent(CombatComponentsLookup.CommandReceiver); } } public void AddCommandReceiver(CombatEntity newEntity) { var index = CombatComponentsLookup.CommandReceiver; var component = (CoreGame.Render.CommandReceiverComponent)CreateComponent(index, typeof(CoreGame.Render.CommandReceiverComponent)); component.entity = newEntity; AddComponent(index, component); } public void ReplaceCommandReceiver(CombatEntity newEntity) { var index = CombatComponentsLookup.CommandReceiver; var component = (CoreGame.Render.CommandReceiverComponent)CreateComponent(index, typeof(CoreGame.Render.CommandReceiverComponent)); component.entity = newEntity; ReplaceComponent(index, component); } public void RemoveCommandReceiver() { RemoveComponent(CombatComponentsLookup.CommandReceiver); } } //------------------------------------------------------------------------------ // // 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 _matcherCommandReceiver; public static Entitas.IMatcher CommandReceiver { get { if (_matcherCommandReceiver == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.CommandReceiver); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherCommandReceiver = matcher; } return _matcherCommandReceiver; } } }