//------------------------------------------------------------------------------ // // 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.AssetComponent asset { get { return (CoreGame.Render.AssetComponent)GetComponent(CombatComponentsLookup.Asset); } } public bool hasAsset { get { return HasComponent(CombatComponentsLookup.Asset); } } public void AddAsset(CoreGame.Render.MainAssetParam newMainAssetParam, System.Collections.Generic.List newIgnoreTypes) { var index = CombatComponentsLookup.Asset; var component = (CoreGame.Render.AssetComponent)CreateComponent(index, typeof(CoreGame.Render.AssetComponent)); component.mainAssetParam = newMainAssetParam; component.ignoreTypes = newIgnoreTypes; AddComponent(index, component); } public void ReplaceAsset(CoreGame.Render.MainAssetParam newMainAssetParam, System.Collections.Generic.List newIgnoreTypes) { var index = CombatComponentsLookup.Asset; var component = (CoreGame.Render.AssetComponent)CreateComponent(index, typeof(CoreGame.Render.AssetComponent)); component.mainAssetParam = newMainAssetParam; component.ignoreTypes = newIgnoreTypes; ReplaceComponent(index, component); } public void RemoveAsset() { RemoveComponent(CombatComponentsLookup.Asset); } } //------------------------------------------------------------------------------ // // 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 _matcherAsset; public static Entitas.IMatcher Asset { get { if (_matcherAsset == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.Asset); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherAsset = matcher; } return _matcherAsset; } } }