// 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(InThis); Collector.AddReferencedObjects(This->Map, This); }