ULimenBatteryAttribute
Overview
ULimenBatteryAttribute is a subclass of ULimenAttributeBase. It manages the state of a battery, including its current value, maximum value, and recharge rate. The class provides basic initialization and sets default values for these properties.
Properties
Type | Name | Access | Description |
|---|---|---|---|
| RechargeRate | Public | Rate at which the battery recharges. Negative value indicates no auto-recharge. |
| MaxValue | Public | Maximum value of the battery. |
| InitialValue | Public | Initial value when the attribute is created. |
Functions
Return Type | Signature | Description |
|---|---|---|
|
| Constructor that initializes the battery attributes with default values. |
Usage & Implementation Notes
The recharge rate is set to
-1.f, indicating no auto-recharge.The maximum value of the battery is set to
100.f.The initial value is set to the maximum value, ensuring the battery starts at full charge.