A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
ApexLibrary.cpp
Go to the documentation of this file.
1// Copyright 2022 PixoVR Corp. All Rights Reserved.
2
3#include "ApexLibrary.h"
4
5#include "Interfaces/IPluginManager.h"
6#include "XAPITypes.h"
7
8FXAPIExtension UApexLibrary::CreateExtensionData(const TMap<FString, UVaRestJsonValue*>& Data)
9{
10 FXAPIExtension Extension;
11
12 for (const TTuple<FString, UVaRestJsonValue*>& ValuePair : Data)
13 {
14 Extension.Add(ValuePair.Key, ValuePair.Value->GetRootValue());
15 }
16
17 return Extension;
18}
19
21{
22 const auto PluginRef = IPluginManager::Get().FindPlugin("ApexSDK");
23
24 return !PluginRef.IsValid() ? FString("invalid") : PluginRef->GetDescriptor().VersionName;
25}
static FString GetApexSDKVersion()
static FXAPIExtension CreateExtensionData(const TMap< FString, UVaRestJsonValue * > &Data)
UFUNCTION(BlueprintCallable, Category = "Apex|API")
USTRUCT(BlueprintType)
TSharedPtr< FJsonValue > & Add(FString InKey, const TSharedPtr< FJsonValue > &InValue)