You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
34 lines
715 B
C++
34 lines
715 B
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Landscape.h"
|
|
#include "LandscapeInfoMap.h"
|
|
|
|
ULandscapeInfoMap::ULandscapeInfoMap(const FObjectInitializer& ObjectInitializer)
|
|
: Super(ObjectInitializer)
|
|
{
|
|
}
|
|
|
|
void ULandscapeInfoMap::PostDuplicate(bool bDuplicateForPIE)
|
|
{
|
|
Super::PostDuplicate(bDuplicateForPIE);
|
|
|
|
check(Map.Num() == 0);
|
|
}
|
|
|
|
void ULandscapeInfoMap::Serialize(FArchive& Ar)
|
|
{
|
|
Super::Serialize(Ar);
|
|
|
|
if (!Ar.IsLoading() && !Ar.IsSaving())
|
|
{
|
|
Ar << Map;
|
|
}
|
|
}
|
|
|
|
void ULandscapeInfoMap::AddReferencedObjects(UObject* InThis, FReferenceCollector& Collector)
|
|
{
|
|
ULandscapeInfoMap* This = CastChecked<ULandscapeInfoMap>(InThis);
|
|
|
|
Collector.AddReferencedObjects(This->Map, This);
|
|
}
|