Download LyraStarterGame/Source/LyraGame/Teams/LyraTeamPublicInfo.cpp from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 959 Bytes
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Teams/LyraTeamPublicInfo.cpp
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Teams/LyraTeamPublicInfo.cpp
-
curl -L -o LyraTeamPublicInfo.cpp https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Teams/LyraTeamPublicInfo.cpp
959 Bytes
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class FLifetimeProperty; | |
| ALyraTeamPublicInfo::ALyraTeamPublicInfo(const FObjectInitializer& ObjectInitializer) | |
| : Super(ObjectInitializer) | |
| { | |
| } | |
| void ALyraTeamPublicInfo::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const | |
| { | |
| Super::GetLifetimeReplicatedProps(OutLifetimeProps); | |
| DOREPLIFETIME_CONDITION(ThisClass, TeamDisplayAsset, COND_InitialOnly); | |
| } | |
| void ALyraTeamPublicInfo::SetTeamDisplayAsset(TObjectPtr<ULyraTeamDisplayAsset> NewDisplayAsset) | |
| { | |
| check(HasAuthority()); | |
| check(TeamDisplayAsset == nullptr); | |
| TeamDisplayAsset = NewDisplayAsset; | |
| TryRegisterWithTeamSubsystem(); | |
| } | |
| void ALyraTeamPublicInfo::OnRep_TeamDisplayAsset() | |
| { | |
| TryRegisterWithTeamSubsystem(); | |
| } | |