// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. #pragma once #include "Engine/Core/Types/BaseTypes.h" /// /// Contains information about power supply (battery). /// API_STRUCT() struct BatteryInfo { DECLARE_SCRIPTING_TYPE_MINIMAL(BatteryInfo); /// /// Power supply status. /// API_ENUM() enum class States { /// /// Unknown status. /// Unknown, /// /// Power supply is connected and battery is charging. /// BatteryCharging, /// /// Device is running on a battery. /// BatteryDischarging, /// /// Device is connected to the stable power supply (AC). /// Connected, }; /// /// Power supply state. /// API_FIELD() BatteryInfo::States State = BatteryInfo::States::Unknown; /// /// Battery percentage left (normalized to 0-1 range). /// API_FIELD() float BatteryLifePercent = 1.0f; };