2024-04-21 15:56:57 -07:00
|
|
|
// Generated by GasaGen/GasaGen_DevOptionsCache.cpp
|
2024-04-21 06:51:51 -07:00
|
|
|
#include "GasaDevOptionsCache.h"
|
|
|
|
|
|
|
|
#include "GasaDevOptions.h"
|
|
|
|
#include "Actors/CameraMount.h"
|
2024-04-21 15:56:57 -07:00
|
|
|
#include "UI/HUDHostWidget.h"
|
|
|
|
#include "UI/HostWidgetController.h"
|
2024-04-21 06:51:51 -07:00
|
|
|
using namespace Gasa;
|
|
|
|
|
|
|
|
void FGasaDevOptionsCache::CachedDevOptions()
|
|
|
|
{
|
|
|
|
UGasaDevOptions* DevOpts = GetMutDevOptions();
|
|
|
|
|
2024-10-21 19:47:37 -07:00
|
|
|
for ( auto& entry : DevOpts->AttributeSets )
|
|
|
|
{
|
|
|
|
AttributeSets.Push( entry.LoadSynchronous() );
|
|
|
|
ensureMsgf( entry != nullptr, TEXT( "An AttributeSets entry is null, DO NOT RUN PIE or else you may get a crash if not handled in BP or C++" ) );
|
|
|
|
}
|
|
|
|
|
2024-04-26 17:08:08 -07:00
|
|
|
TaggedMessageTable = DevOpts->TaggedMessageTable.LoadSynchronous();
|
|
|
|
ensureMsgf( TaggedMessageTable != nullptr, TEXT( "TaggedMessageTable is null, DO NOT RUN PIE or else you may get a crash if not handled in BP or C++" ) );
|
|
|
|
|
2024-04-21 06:51:51 -07:00
|
|
|
Template_PlayerCamera = DevOpts->Template_PlayerCamera.LoadSynchronous();
|
2024-04-21 22:54:33 -07:00
|
|
|
ensureMsgf(
|
|
|
|
Template_PlayerCamera != nullptr, TEXT( "Template_PlayerCamera is null, DO NOT RUN PIE or else you may get a crash if not handled in BP or C++" )
|
|
|
|
);
|
2024-04-21 15:56:57 -07:00
|
|
|
|
|
|
|
Template_HUD_HostUI = DevOpts->Template_HUD_HostUI.LoadSynchronous();
|
|
|
|
ensureMsgf( Template_HUD_HostUI != nullptr, TEXT( "Template_HUD_HostUI is null, DO NOT RUN PIE or else you may get a crash if not handled in BP or C++" ) );
|
|
|
|
|
|
|
|
Template_HostWidgetController = DevOpts->Template_HostWidgetController.LoadSynchronous();
|
2024-04-21 22:54:33 -07:00
|
|
|
ensureMsgf(
|
|
|
|
Template_HostWidgetController != nullptr,
|
|
|
|
TEXT( "Template_HostWidgetController is null, DO NOT RUN PIE or else you may get a crash if not handled in BP or C++" )
|
|
|
|
);
|
2024-04-21 06:51:51 -07:00
|
|
|
|
|
|
|
Tag_GlobalPPV = DevOpts->Tag_GlobalPPV;
|
|
|
|
}
|