You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
WorldPartition : Removed PreCookCommandlet and replaced with new FWorldPartitionCookPackageSplitter. #rb matt.peters, patrick.enfedaque, jeanfrancois.dube [CL 14806302 by Richard Malo in ue5-main branch]
44 lines
883 B
C++
44 lines
883 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "CookPackageSplitter.h"
|
|
|
|
#if WITH_EDITOR
|
|
|
|
namespace UE
|
|
{
|
|
namespace Cook
|
|
{
|
|
namespace Private
|
|
{
|
|
|
|
static TLinkedList<FRegisteredCookPackageSplitter*>* GRegisteredCookPackageSplitterList = nullptr;
|
|
|
|
FRegisteredCookPackageSplitter::FRegisteredCookPackageSplitter()
|
|
: GlobalListLink(this)
|
|
{
|
|
GlobalListLink.LinkHead(GetRegisteredList());
|
|
}
|
|
|
|
FRegisteredCookPackageSplitter::~FRegisteredCookPackageSplitter()
|
|
{
|
|
GlobalListLink.Unlink();
|
|
}
|
|
|
|
TLinkedList<FRegisteredCookPackageSplitter*>*& FRegisteredCookPackageSplitter::GetRegisteredList()
|
|
{
|
|
return GRegisteredCookPackageSplitterList;
|
|
}
|
|
|
|
void FRegisteredCookPackageSplitter::ForEach(TFunctionRef<void(FRegisteredCookPackageSplitter*)> Func)
|
|
{
|
|
for (TLinkedList<FRegisteredCookPackageSplitter*>::TIterator It(GetRegisteredList()); It; It.Next())
|
|
{
|
|
Func(*It);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif |