//------------------------------------------------------------------------------ // // 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.MainAssetLoadedComponent mainAssetLoadedComponent = new CoreGame.Render.MainAssetLoadedComponent(); public bool isMainAssetLoaded { get { return HasComponent(CombatComponentsLookup.MainAssetLoaded); } set { if (value != isMainAssetLoaded) { var index = CombatComponentsLookup.MainAssetLoaded; if (value) { var componentPool = GetComponentPool(index); var component = componentPool.Count > 0 ? componentPool.Pop() : mainAssetLoadedComponent; 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 _matcherMainAssetLoaded; public static Entitas.IMatcher MainAssetLoaded { get { if (_matcherMainAssetLoaded == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.MainAssetLoaded); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherMainAssetLoaded = matcher; } return _matcherMainAssetLoaded; } } }