// Copyright Epic Games, Inc. All Rights Reserved. #include "LyraTeamPublicInfo.h" #include "Containers/Array.h" #include "Misc/AssertionMacros.h" #include "Net/UnrealNetwork.h" #include "UObject/CoreNetTypes.h" class FLifetimeProperty; ALyraTeamPublicInfo::ALyraTeamPublicInfo(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { } void ALyraTeamPublicInfo::GetLifetimeReplicatedProps(TArray& OutLifetimeProps) const { Super::GetLifetimeReplicatedProps(OutLifetimeProps); DOREPLIFETIME_CONDITION(ThisClass, TeamDisplayAsset, COND_InitialOnly); } void ALyraTeamPublicInfo::SetTeamDisplayAsset(TObjectPtr NewDisplayAsset) { check(HasAuthority()); check(TeamDisplayAsset == nullptr); TeamDisplayAsset = NewDisplayAsset; TryRegisterWithTeamSubsystem(); } void ALyraTeamPublicInfo::OnRep_TeamDisplayAsset() { TryRegisterWithTeamSubsystem(); }