Updated to use the new plugin

This commit is contained in:
Jordon Brooks 2024-01-07 23:46:48 +00:00
parent 174a73d160
commit 509d6aab73
No known key found for this signature in database
GPG key ID: 83964894E5D98D57
36 changed files with 788 additions and 753 deletions

View file

@ -0,0 +1,21 @@
// Copyright (C) 2023 Jordon Brooks
#include "Structs/Battery.h"
#include <Structs/FBattery.h>
FBattery::FBattery(HarmonyLinkLib::FBattery* battery)
{
if (battery)
{
HasBattery = battery->has_battery;
IsACConnected = battery->is_connected_to_ac;
BatteryPercent = battery->battery_percent;
battery->free();
}
else
{
UE_LOG(LogTemp, Error, TEXT("Failed to convert FBattery."))
}
}