Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
Inheritance Hierarchy
- TSharedFromThis
- FAggregator
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectAggregator.h |
| Include | #include "GameplayEffectAggregator.h" |
Syntax
struct FAggregator : public TSharedFromThis< FAggregator >
Variables
| Type | Name | Description | |
|---|---|---|---|
| FAggregatorEvaluateMetaData * | EvaluationMetaData | Custom meta data for the aggregator | |
| int32 | NetUpdateID | NetworkID that we had our last update from. | |
| FOnAggregatorDirty | OnDirty | ||
| FOnAggregatorDirty | OnDirtyRecursive |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAggregator
(
float InBaseValue |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FAggregator () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddAggregatorMod
(
float EvaluatedData, |
||
| void | AddDependent
(
FActiveGameplayEffectHandle Handle |
||
| void | AddModsFrom
(
const FAggregator& SourceAggregator |
||
| float | Evaluate
(
const FAggregatorEvaluateParameters& Parameters |
Evaluates the Aggregator with the internal base value and given parameters | |
| float | EvaluateBonus
(
const FAggregatorEvaluateParameters& Parameters |
Evaluates the Aggregator to compute its "bonus" (final - base) value | |
| float | EvaluateContribution
(
const FAggregatorEvaluateParameters& Parameters, |
Evaluates the contribution from the GE associated with ActiveHandle | |
| void | EvaluateQualificationForAllMods
(
const FAggregatorEvaluateParameters& Parameters |
Calls ::UpdateQualifies on each mod. Useful for when you need to manually inspect aggregators | |
| float | EvaluateToChannel
(
const FAggregatorEvaluateParameters& Parameters, |
Evaluates the aggregator with the internal base value and given parameters, up to the specified evaluation channel (inclusive) | |
| float | EvaluateWithBase
(
float InlineBaseValue, |
Evaluates the Aggregator with an arbitrary base value | |
| void | ExecModOnBaseValue
(
TEnumAsByte< EGameplayModOp::Type > ModifierOp, |
||
| void | ForEachMod
(
TFunction< void(const FAggregatorModInfo&) > |
Helper function for iterating through all mods within the aggregator | |
| void | GetAllAggregatorMods
(
TMap< EGameplayModEvaluationChannel, const TArray< FAggregatorMod >* >& OutMods |
Populate a mapping of channel to corresponding mods | |
| float | GetBaseValue () |
Simple accessor to base value | |
| void | OnActiveEffectDependenciesSwapped
(
const TMap< FActiveGameplayEffectHandle, FActiveGameplayEffectHandle >& SwappedDependencies |
Called when the aggregator's gameplay effect dependencies have potentially been swapped out for new ones, like when GE arrays are cloned. | |
| void | RemoveAggregatorMod
(
FActiveGameplayEffectHandle ActiveHandle |
Removes all mods for the passed in handle and marks this as dirty to recalculate the aggregator | |
| void | RemoveDependent
(
FActiveGameplayEffectHandle Handle |
||
| float | ReverseEvaluate
(
float FinalValue, |
Works backwards to calculate the base value. Used on clients for doing predictive modifiers | |
| void | SetBaseValue
(
float NewBaseValue, |
||
| float | StaticExecModOnBaseValue
(
float BaseValue, |
||
| void | TakeSnapshotOf
(
const FAggregator& AggToSnapshot |
||
| void | UpdateAggregatorMod
(
FActiveGameplayEffectHandle ActiveHandle, |
Updates the aggregators for the past in handle, this will handle it so the UAttributeSets stats only get one update for the delta change |
Typedefs
| Name | Description |
|---|---|
| FOnAggregatorDirty |