Skip to content
Snippets Groups Projects
Select Git revision
  • 067a2e94408a28819f54881ba35a313a448d8873
  • main default protected
  • master
3 results

DensityField.h

Blame
  • RWTHVRCluster.cpp 990 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.aixcave");
    	InOutPackagesToCook.Add("/RWTHVRCluster/Config/aixcave_two_player.aixcave_two_player");
    
    	UE_LOGFMT(LogTemp, Display,
    			  "GetPackagesToAlwaysCook delegate called, adding aixcave configs to always cook list...");
    }
    
    #undef LOCTEXT_NAMESPACE
    
    IMPLEMENT_MODULE(FRWTHVRClusterModule, RWTHVRCluster)