Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem
Object to represent a new stat value and how to use it in relation to previous values
| Name | FOnlineStatUpdate |
| Type | struct |
| Header File | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineStatsInterface.h |
| Include Path | #include "Interfaces/OnlineStatsInterface.h" |
Syntax
struct FOnlineStatUpdate
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Construct an empty FOnlineStatUpdate | Interfaces/OnlineStatsInterface.h | ||
FOnlineStatUpdate
(
FOnlineStatUpdate&& Other |
Copy/Assignment construction | Interfaces/OnlineStatsInterface.h | |
FOnlineStatUpdate
(
const FOnlineStatUpdate& Other |
Interfaces/OnlineStatsInterface.h | ||
FOnlineStatUpdate
(
const FOnlineStatValue& InNewValue, |
Construct a new FOnlineStatUpdate from a value | Interfaces/OnlineStatsInterface.h | |
FOnlineStatUpdate
(
FOnlineStatValue&& InNewValue, |
Interfaces/OnlineStatsInterface.h |
Enums
Public
| Name | Remarks |
|---|---|
| EOnlineStatModificationType | How should we modify this stat in relation to previous values? |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ModificationType | EOnlineStatModificationType | Interfaces/OnlineStatsInterface.h | ||
| NewValue | FOnlineStatValue | Interfaces/OnlineStatsInterface.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EOnlineStatModificationType GetModificationType() |
Get the current modification type | Interfaces/OnlineStatsInterface.h | |
FOnlineStatValue GetResult
(
const FOnlineStatValue& Other |
Takes the value saved here and its corresponding ModificationType and outputs the new final value. | Interfaces/OnlineStatsInterface.h | |
EOnlineKeyValuePairDataType::Type GetType() |
Get the current type of stat (int32, float, etc) | Interfaces/OnlineStatsInterface.h | |
const FOnlineStatValue & GetValue() |
Get the current value | Interfaces/OnlineStatsInterface.h | |
bool IsNumeric() |
Returns true if this stat is numeric | Interfaces/OnlineStatsInterface.h | |
void Set
(
const FOnlineStatValue& InNewValue, |
Set this stat update to a new value/modification type | Interfaces/OnlineStatsInterface.h | |
void Set
(
FOnlineStatValue&& InNewValue, |
Interfaces/OnlineStatsInterface.h | ||
FString ToString() |
Get the value of this stat as a string | Interfaces/OnlineStatsInterface.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FOnlineStatUpdate & operator=
(
FOnlineStatUpdate&& Other |
Interfaces/OnlineStatsInterface.h | ||
FOnlineStatUpdate & operator=
(
const FOnlineStatUpdate& Other |
Interfaces/OnlineStatsInterface.h |