Select Git revision
MetaCastBaseline.h
RWTHVRCluster.cpp 963 B
#include "RWTHVRCluster.h"
#include "GameDelegates.h"
#include "Logging/StructuredLog.h"
#define LOCTEXT_NAMESPACE "FRWTHVRClusterModule"
void FRWTHVRClusterModule::StartupModule()
{
ClusterConsole.Register();
FGameDelegates::Get().GetModifyCookDelegate().AddRaw(this, &FRWTHVRClusterModule::GetPackagesToAlwaysCook);
}
void FRWTHVRClusterModule::ShutdownModule() { ClusterConsole.Unregister(); }
void FRWTHVRClusterModule::GetPackagesToAlwaysCook(TConstArrayView<const ITargetPlatform*> InTargetPlatforms,
TArray<FName>& InOutPackagesToCook,
TArray<FName>& InOutPackagesToNeverCook)
{
InOutPackagesToCook.Add("/RWTHVRCluster/Config/aixcave");
InOutPackagesToCook.Add("/RWTHVRCluster/Config/aixcave_two_player");
UE_LOGFMT(LogTemp, Display,
"GetPackagesToAlwaysCook delegate called, adding aixcave configs to always cook list...");
}
#undef LOCTEXT_NAMESPACE
IMPLEMENT_MODULE(FRWTHVRClusterModule, RWTHVRCluster)