You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.8 KiB
60 lines
2.8 KiB
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 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.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
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);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 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.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
public sealed partial class CombatMatcher {
|
|
|
|
static Entitas.IMatcher<CombatEntity> _matcherGaCtxTransfer;
|
|
|
|
public static Entitas.IMatcher<CombatEntity> GaCtxTransfer {
|
|
get {
|
|
if (_matcherGaCtxTransfer == null) {
|
|
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.GaCtxTransfer);
|
|
matcher.componentNames = CombatComponentsLookup.componentNames;
|
|
_matcherGaCtxTransfer = matcher;
|
|
}
|
|
|
|
return _matcherGaCtxTransfer;
|
|
}
|
|
}
|
|
}
|
|
|