5#include "Interfaces/IPluginManager.h"
8#include "Editor/EditorEngine.h"
15 for (
const TTuple<FString, UVaRestJsonValue*>& ValuePair : Data)
17 Extension.
Add(ValuePair.Key, ValuePair.Value->GetRootValue());
25 TSharedPtr<FJsonValue> SharedValue = MakeShared<FJsonValueString>(String);
26 UVaRestJsonValue* RestJsonValue = NewObject<UVaRestJsonValue>();
27 RestJsonValue->SetRootValue(SharedValue);
34 const auto PluginRef = IPluginManager::Get().FindPlugin(
"ApexSDK");
36 return !PluginRef.IsValid() ? FString(
"invalid") : PluginRef->GetDescriptor().VersionName;
static UVaRestJsonValue * JsonValueFromString(FString String)
UFUNCTION(BlueprintCallable, Category = "Apex|API")
static FString GetApexSDKVersion()
static FXAPIExtension CreateExtensionData(const TMap< FString, UVaRestJsonValue * > &Data)
UFUNCTION(BlueprintCallable, Category = "Apex|API")
TSharedPtr< FJsonValue > & Add(FString InKey, const TSharedPtr< FJsonValue > &InValue)