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
8
FXAPIExtension
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
20
FString
UApexLibrary::GetApexSDKVersion
()
21
{
22
const
auto
PluginRef = IPluginManager::Get().FindPlugin(
"ApexSDK"
);
23
24
return
!PluginRef.IsValid() ? FString(
"invalid"
) : PluginRef->GetDescriptor().VersionName;
25
}
ApexLibrary.h
XAPITypes.h
UApexLibrary::GetApexSDKVersion
static FString GetApexSDKVersion()
Definition
ApexLibrary.cpp:20
UApexLibrary::CreateExtensionData
static FXAPIExtension CreateExtensionData(const TMap< FString, UVaRestJsonValue * > &Data)
UFUNCTION(BlueprintCallable, Category = "Apex|API")
Definition
ApexLibrary.cpp:8
FXAPIExtension
USTRUCT(BlueprintType)
Definition
XAPIExtension.h:16
FXAPIExtension::Add
TSharedPtr< FJsonValue > & Add(FString InKey, const TSharedPtr< FJsonValue > &InValue)
Definition
XAPIExtension.h:84
SDKDemo
Plugins
UnrealEngineSDK
PixoApex
Source
ApexSDK
Private
ApexLibrary.cpp
Generated
Wed Oct 9 2024 19:52:53
by Doxygen version
1.10.0