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