#include "RPGBlueprintLibrary.h" #include "ActionRPGLoadingScreen.h" URPGBlueprintLibrary::URPGBlueprintLibrary(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { } void URPGBlueprintLibrary::PlayLoadingScreen(bool bPlayUntilStopped, float PlayTime) { IActionRPGLoadingScreenModule& LoadingScreenModule = IActionRPGLoadingScreenModule::Get(); LoadingScreenModule.StartInGameLoadingScreen(bPlayUntilStopped, PlayTime); } void URPGBlueprintLibrary::StopLoadingScreen() { IActionRPGLoadingScreenModule& LoadingScreenModule = IActionRPGLoadingScreenModule::Get(); LoadingScreenModule.StopInGameLoadingScreen(); } bool URPGBlueprintLibrary::IsInEditor() { return GIsEditor; } FString URPGBlueprintLibrary::GetProjectVersion() { FString ProjectVersion; GConfig->GetString( TEXT("/Script/EngineSettings.GeneralProjectSettings"), TEXT("ProjectVersion"), ProjectVersion, GGameIni ); return ProjectVersion; }