Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
Struct representing a container of modifier channels
| Name | FAggregatorModChannelContainer |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectAggregator.h |
| Include Path | #include "GameplayEffectAggregator.h" |
Syntax
struct FAggregatorModChannelContainer
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ModChannelsMap | TMap< EGameplayModEvaluationChannel, FAggregatorModChannel > | Mapping of evaluation channel enumeration to actual struct representation | GameplayEffectAggregator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddModsFrom
(
const FAggregatorModChannelContainer& Other |
Adds the mods from specified container to this one | GameplayEffectAggregator.h | |
void EvaluateQualificationForAllMods
(
const FAggregatorEvaluateParameters& Parameters |
Calls ::UpdateQualifies on each mod | GameplayEffectAggregator.h | |
float EvaluateWithBase
(
float InlineBaseValue, |
Evaluates the result of the specified base value run through each existing evaluation channel's modifiers in numeric order with the specified evaluation parameters. | GameplayEffectAggregator.h | |
float EvaluateWithBaseToChannel
(
float InlineBaseValue, |
Similar to EvaluateWithBase (see comment there for details), but terminates early after evaluating the specified final channel instead of continuing through every possible channel | GameplayEffectAggregator.h | |
FAggregatorModChannel & FindOrAddModChannel
(
EGameplayModEvaluationChannel Channel |
Find or add a modifier channel for the specified enum value | GameplayEffectAggregator.h | |
void ForEachMod
(
TFunction< void(const FAggregatorModInfo&) > |
Helper function for iterating through all mods within the channel container | GameplayEffectAggregator.h | |
void GetAllAggregatorMods
(
TMap< EGameplayModEvaluationChannel, const TArray< FAggregatorMod >* >& OutMods |
Populate a mapping of channel to corresponding mods for debugging purposes | GameplayEffectAggregator.h | |
int32 GetNumChannels() |
Simple accessor to the current number of modifier channels active | GameplayEffectAggregator.h | |
void OnActiveEffectDependenciesSwapped
(
const TMap< FActiveGameplayEffectHandle, FActiveGameplayEffectHandle >& SwappedDependencies |
Called when the container's gameplay effect dependencies have potentially been swapped out for new ones, like when GE arrays are cloned. | GameplayEffectAggregator.h | |
void RemoveAggregatorMod
(
const FActiveGameplayEffectHandle& ActiveHandle |
Removes any mods from every channel matching the specified handle | GameplayEffectAggregator.h | |
float ReverseEvaluate
(
float FinalValue, |
Evaluates a final value in reverse, attempting to determine a base value from the modifiers within all of the channels. | GameplayEffectAggregator.h |