Skip to content
Snippets Groups Projects
Select Git revision
  • d52a671b057220475aa9146e9b8573ebb9ddd01f
  • 5.4 default protected
  • dev/5.5
  • dev/5.6
  • dev/5.4
  • dev/5.3_downgrade
  • 5.3 protected
  • feature/present_barrier
8 results

RWTHVRCluster.cpp

Blame
  • 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)