CogSample: Add new attribute sets to test having the same attribute name in different attribute sets.

This commit is contained in:
Arnaud Jamin
2025-01-14 23:40:02 -05:00
parent e118785e1e
commit 392c015d2e
5 changed files with 106 additions and 0 deletions
@@ -0,0 +1,22 @@
#include "CogSampleAttributeSet_Ability_Shield.h"
#include "Net/Core/PushModel/PushModel.h"
#include "Net/UnrealNetwork.h"
//--------------------------------------------------------------------------------------------------------------------------
UCogSampleAttributeSet_Ability_Shield::UCogSampleAttributeSet_Ability_Shield()
{
}
//--------------------------------------------------------------------------------------------------------------------------
void UCogSampleAttributeSet_Ability_Shield::GetLifetimeReplicatedProps(TArray<class FLifetimeProperty>& OutLifetimeProps) const
{
Super::GetLifetimeReplicatedProps(OutLifetimeProps);
FDoRepLifetimeParams Params;
Params.bIsPushBased = true;
Params.RepNotifyCondition = REPNOTIFY_Always;
DOREPLIFETIME_WITH_PARAMS_FAST(UCogSampleAttributeSet_Ability_Shield, Cooldown, Params);
DOREPLIFETIME_WITH_PARAMS_FAST(UCogSampleAttributeSet_Ability_Shield, Cost, Params);
}