FOnlineStatUpdate

Object to represent a new stat value and how to use it in relation to previous values

Windows
MacOS
Linux

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

Name Description

Public function

FOnlineStatUpdate()

Construct an empty FOnlineStatUpdate

Public function

FOnlineStatUpdate

(
    FOnlineStatUpdate&& Other
)

Copy/Assignment construction

Public function

FOnlineStatUpdate

(
    const FOnlineStatUpdate& Other
)

Public function

FOnlineStatUpdate

(
    const FOnlineStatValue& InNewValue,
    const EOnlineStatModificationType I...
)

Construct a new FOnlineStatUpdate from a value

Public function

FOnlineStatUpdate

(
    FOnlineStatValue&& InNewValue,
    const EOnlineStatModificationType I...
)

Functions

Name Description

Public function Const

EOnlineStatM...

 

GetModificationType()

Get the current modification type

Public function Const

EOnlineKeyVa...

 

GetType()

Get the current type of stat (int32, float, etc)

Public function Const

const FOnlin...

 

GetValue()

Get the current value

Public function Const

bool

 

IsNumeric()

Returns true if this stat is numeric

Public function

void

 

Set

(
    const FOnlineStatValue& InNewValue,
    const EOnlineStatModificationType I...
)

Set this stat update to a new value/modification type

Public function

void

 

Set

(
    FOnlineStatValue&& InNewValue,
    const EOnlineStatModificationType I...
)

Public function Const

FString

 

ToString()

Get the value of this stat as a string

Operators

Name Description

Public function

FOnlineStatU...

 

operator=

(
    FOnlineStatUpdate&& Other
)

Public function

FOnlineStatU...

 

operator=

(
    const FOnlineStatUpdate& Other
)

Enums

Name

Description

Public enum

EOnlineStatModificationType

How should we modify this stat in relation to previous values?

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss