Added marketplace stuff
This commit is contained in:
parent
56aa126e8e
commit
fb8a01915e
16 changed files with 131 additions and 61 deletions
|
@ -1,4 +1,6 @@
|
|||
#pragma once
|
||||
// Copyright (C) 2024 Jordon Brooks
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Enums/DeviceEnum.h"
|
||||
|
@ -7,9 +9,7 @@
|
|||
|
||||
#include "Device.generated.h"
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
// Represents information about a specific device.
|
||||
USTRUCT(BlueprintType)
|
||||
struct FDevice
|
||||
{
|
||||
|
@ -17,14 +17,28 @@ struct FDevice
|
|||
|
||||
FDevice() {}
|
||||
|
||||
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
||||
// The platform on which the device operates. Note: This can differ from the build platform.
|
||||
// For example, if the device is identified as running on Wine, this will show Linux,
|
||||
// regardless of the build being an executable for Windows.
|
||||
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="HarmonyLink")
|
||||
EPlatform Platform = EPlatform::WINDOWS;
|
||||
|
||||
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
||||
// The type of the device.
|
||||
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="HarmonyLink")
|
||||
EDeviceEnum Device = EDeviceEnum::DESKTOP;
|
||||
|
||||
// Constructor that initializes the struct with information from an external source.
|
||||
// @param oldDevice Pointer to an external FDevice structure to copy data from.
|
||||
FDevice(HarmonyLinkLib::FDevice* oldDevice);
|
||||
|
||||
private:
|
||||
// Converts an external device enum to the internal EDeviceEnum type.
|
||||
// @param Device External device enum to convert.
|
||||
// @returns Converted EDeviceEnum value.
|
||||
static EDeviceEnum Convert(HarmonyLinkLib::EDevice Device);
|
||||
|
||||
// Converts an external platform enum to the internal EPlatform type.
|
||||
// @param Platform External platform enum to convert.
|
||||
// @returns Converted EPlatform value.
|
||||
static EPlatform Convert(HarmonyLinkLib::EPlatform Platform);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue