// Copyright Epic Games, Inc. All Rights Reserved. #include "LyraCombatSet.h" #include "Containers/Array.h" #include "Net/UnrealNetwork.h" #include "UObject/CoreNetTypes.h" class FLifetimeProperty; ULyraCombatSet::ULyraCombatSet() : BaseDamage(0.0f) , BaseHeal(0.0f) { } void ULyraCombatSet::GetLifetimeReplicatedProps(TArray& OutLifetimeProps) const { Super::GetLifetimeReplicatedProps(OutLifetimeProps); DOREPLIFETIME_CONDITION_NOTIFY(ULyraCombatSet, BaseDamage, COND_OwnerOnly, REPNOTIFY_Always); DOREPLIFETIME_CONDITION_NOTIFY(ULyraCombatSet, BaseHeal, COND_OwnerOnly, REPNOTIFY_Always); } void ULyraCombatSet::OnRep_BaseDamage(const FGameplayAttributeData& OldValue) { GAMEPLAYATTRIBUTE_REPNOTIFY(ULyraCombatSet, BaseDamage, OldValue); } void ULyraCombatSet::OnRep_BaseHeal(const FGameplayAttributeData& OldValue) { GAMEPLAYATTRIBUTE_REPNOTIFY(ULyraCombatSet, BaseHeal, OldValue); }