//------------------------------------------------------------------------------ // // 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 GAS.Runtime.AbilitySystemComponent abilitySystem { get { return (GAS.Runtime.AbilitySystemComponent)GetComponent(CombatComponentsLookup.AbilitySystem); } } public bool hasAbilitySystem { get { return HasComponent(CombatComponentsLookup.AbilitySystem); } } public void AddAbilitySystem(CombatEntity newOwner) { var index = CombatComponentsLookup.AbilitySystem; var component = (GAS.Runtime.AbilitySystemComponent)CreateComponent(index, typeof(GAS.Runtime.AbilitySystemComponent)); component.owner = newOwner; AddComponent(index, component); } public void ReplaceAbilitySystem(CombatEntity newOwner) { var index = CombatComponentsLookup.AbilitySystem; var component = (GAS.Runtime.AbilitySystemComponent)CreateComponent(index, typeof(GAS.Runtime.AbilitySystemComponent)); component.owner = newOwner; ReplaceComponent(index, component); } public void RemoveAbilitySystem() { RemoveComponent(CombatComponentsLookup.AbilitySystem); } } //------------------------------------------------------------------------------ // // 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 _matcherAbilitySystem; public static Entitas.IMatcher AbilitySystem { get { if (_matcherAbilitySystem == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.AbilitySystem); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherAbilitySystem = matcher; } return _matcherAbilitySystem; } } }