public sealed class EffectTemplateAn EffectDefinition with every name resolved: the form the frame runs.
Remarks
Compiled once, shared by every instance of the effect on every target. A definition holds strings because a designer wrote it; a template holds GameplayTagRanges and AttributeIds because a hundred stacks of burning on forty targets must not resolve a string. Nothing here is per-target — that is ActiveEffect.
⚠ A tag the table does not have compiles to an empty range and matches nothing, rather than failing the compile. A definition that mentions a tag no content baked is a content bug, and the place that reports it is the content build; a realm that refused to load the effect would turn one misspelling into an ability that throws.
Fields and properties (13)
public EffectDefinition DefinitionWhat it was compiled from.
public DefId IdThe definition's id — what the wire carries and a saved row stores.
public float DurationHow long one application lasts, in seconds. Zero or less is forever.
public bool IsInfiniteWhether it lasts until something removes it.
public float PeriodHow often it ticks, in seconds. Zero is never.
public EffectStacking StackingWhat a second application does.
public int MaximumStacksHow high StackTo counts, never below one.
public ReadOnlySpan<Modifier> ModifiersWhat it does to the target's stats, per stack. Source is unset.
public ReadOnlySpan<GameplayTag> TagsWhat this effect is, for an immunity to match.
public ReadOnlySpan<GameplayTag> GrantedTagsWhat the target has while it is active.
public ReadOnlySpan<GameplayTagRange> BlockedTagsWhat the target may not do while it is active.
public ReadOnlySpan<GameplayTagRange> ImmunitiesWhat may not be applied to the target while it is active.
public ReadOnlySpan<GameplayTagRange> CancelOnWhich gameplay events end it.
Methods (2)
public static EffectTemplate Compile(EffectDefinition definition, GameplayTagTable tags)Resolves a definition against a tag table.
public bool MatchedBy(ReadOnlySpan<GameplayTagRange> ranges)Whether this effect is one of the kinds a set of immunity ranges covers.
Used by (8)
- AbilityCasterTestsVixen.Gameplay.Combat.Tests
- AbilityLibraryVixen.Gameplay.Combat
- AbilityTemplateVixen.Gameplay.Combat
- ActiveEffectVixen.Gameplay
- CombatResolverVixen.Gameplay.Combat
- EffectSetVixen.Gameplay
- EffectSetTestsVixen.Gameplay.Tests
- GameplaySubjectTestsVixen.Gameplay.Tests