#include "PetComponent.h" #include "Net/UnrealNetwork.h" void UPetComponent::GetLifetimeReplicatedProps(TArray& OutLifetimeProps) const { Super::GetLifetimeReplicatedProps(OutLifetimeProps); DOREPLIFETIME(UPetComponent, OwningPlayer); } UPetComponent::UPetComponent() { }