Ark Server API (ASA) - Wiki
|
#include <UnitConversion.h>
Public Member Functions | |
FUnitSettings () | |
bool | ShouldDisplayUnits () const |
void | SetShouldDisplayUnits (bool bInGlobalUnitDisplay) |
const TArray< EUnit > & | GetDisplayUnits (EUnitType InType) const |
void | SetDisplayUnits (EUnitType InType, const TArray< EUnit > &Units) |
void | SetDisplayUnits (EUnitType InType, EUnit Units) |
DECLARE_EVENT (FUnitSettings, FDisplaySettingChanged) | |
FDisplaySettingChanged & | OnDisplaySettingsChanged () |
Private Attributes | |
bool | bGlobalUnitDisplay |
TArray< EUnit > | DisplayUnits [(uint8) EUnitType::NumberOf+1] |
FDisplaySettingChanged | SettingChangedEvent |
Unit settings accessed globally through FUnitConversion::Settings()
Definition at line 75 of file UnitConversion.h.
FUnitSettings::FUnitSettings | ( | ) |
FUnitSettings::DECLARE_EVENT | ( | FUnitSettings | , |
FDisplaySettingChanged | ) |
Returns an event delegate that is executed when a display setting has changed. (GlobalUnitDisplay or DefaultInputUnits)
Get/Set the specific valid units to display the specified type of unit in
|
inline |
Definition at line 92 of file UnitConversion.h.
bool FUnitSettings::ShouldDisplayUnits | ( | ) | const |
Check whether unit display is globally enabled or disabled
|
private |
Global toggle controlling whether we should display units or not
Definition at line 97 of file UnitConversion.h.
|
private |
Arrays of units that are valid to display on interfaces
Definition at line 100 of file UnitConversion.h.
|
private |
Holds an event delegate that is executed when a display setting has changed.
Definition at line 103 of file UnitConversion.h.