//------------------------------------------------------------------------------ // // 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 { static readonly CoreGame.Render.CannotReloadComponent cannotReloadComponent = new CoreGame.Render.CannotReloadComponent(); public bool isCannotReload { get { return HasComponent(CombatComponentsLookup.CannotReload); } set { if (value != isCannotReload) { var index = CombatComponentsLookup.CannotReload; if (value) { var componentPool = GetComponentPool(index); var component = componentPool.Count > 0 ? componentPool.Pop() : cannotReloadComponent; AddComponent(index, component); } else { RemoveComponent(index); } } } } } //------------------------------------------------------------------------------ // // 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 _matcherCannotReload; public static Entitas.IMatcher CannotReload { get { if (_matcherCannotReload == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.CannotReload); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherCannotReload = matcher; } return _matcherCannotReload; } } }