Files
UnrealEngineUWP/Engine/Source/Runtime/Landscape/Private/LandscapeInfoMap.cpp
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

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);
}