//------------------------------------------------------------------------------ // // 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.GaCtxTransferComponent gaCtxTransfer { get { return (CoreGame.Render.GaCtxTransferComponent)GetComponent(CombatComponentsLookup.GaCtxTransfer); } } public bool hasGaCtxTransfer { get { return HasComponent(CombatComponentsLookup.GaCtxTransfer); } } public void AddGaCtxTransfer(GAS.Runtime.GameplayAbilityParams newGaParams, GAS.Runtime.GameplayAbilityCfg newGaInitCfg, int newLevel) { var index = CombatComponentsLookup.GaCtxTransfer; var component = (CoreGame.Render.GaCtxTransferComponent)CreateComponent(index, typeof(CoreGame.Render.GaCtxTransferComponent)); component.gaParams = newGaParams; component.gaInitCfg = newGaInitCfg; component.level = newLevel; AddComponent(index, component); } public void ReplaceGaCtxTransfer(GAS.Runtime.GameplayAbilityParams newGaParams, GAS.Runtime.GameplayAbilityCfg newGaInitCfg, int newLevel) { var index = CombatComponentsLookup.GaCtxTransfer; var component = (CoreGame.Render.GaCtxTransferComponent)CreateComponent(index, typeof(CoreGame.Render.GaCtxTransferComponent)); component.gaParams = newGaParams; component.gaInitCfg = newGaInitCfg; component.level = newLevel; ReplaceComponent(index, component); } public void RemoveGaCtxTransfer() { RemoveComponent(CombatComponentsLookup.GaCtxTransfer); } } //------------------------------------------------------------------------------ // // 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 _matcherGaCtxTransfer; public static Entitas.IMatcher GaCtxTransfer { get { if (_matcherGaCtxTransfer == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.GaCtxTransfer); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherGaCtxTransfer = matcher; } return _matcherGaCtxTransfer; } } }