#include "GatheItemsObjective.h" #include "Net/UnrealNetwork.h" void UGatheItemsObjective::OnResourceChanged(UCappedResource* CappedResource, float Amount) { } void UGatheItemsObjective::OnRep_ItemsCollected(int32 prevAmount) { } void UGatheItemsObjective::GetLifetimeReplicatedProps(TArray& OutLifetimeProps) const { Super::GetLifetimeReplicatedProps(OutLifetimeProps); DOREPLIFETIME(UGatheItemsObjective, ItemsCollected); } UGatheItemsObjective::UGatheItemsObjective() { this->ItemsRequired = 0; this->ItemsSpawnedModifier = 1.50f; this->ItemsCollected = 0; this->ItemResource = NULL; }