//------------------------------------------------------------------------------ // // 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.DetachAssetComponent detachAsset { get { return (CoreGame.Render.DetachAssetComponent)GetComponent(CombatComponentsLookup.DetachAsset); } } public bool hasDetachAsset { get { return HasComponent(CombatComponentsLookup.DetachAsset); } } public void AddDetachAsset(BindPointType newBindPointType) { var index = CombatComponentsLookup.DetachAsset; var component = (CoreGame.Render.DetachAssetComponent)CreateComponent(index, typeof(CoreGame.Render.DetachAssetComponent)); component.bindPointType = newBindPointType; AddComponent(index, component); } public void ReplaceDetachAsset(BindPointType newBindPointType) { var index = CombatComponentsLookup.DetachAsset; var component = (CoreGame.Render.DetachAssetComponent)CreateComponent(index, typeof(CoreGame.Render.DetachAssetComponent)); component.bindPointType = newBindPointType; ReplaceComponent(index, component); } public void RemoveDetachAsset() { RemoveComponent(CombatComponentsLookup.DetachAsset); } } //------------------------------------------------------------------------------ // // 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 _matcherDetachAsset; public static Entitas.IMatcher DetachAsset { get { if (_matcherDetachAsset == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.DetachAsset); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherDetachAsset = matcher; } return _matcherDetachAsset; } } }