FNetworkSimTime

The main Simulation time type. All sims use this to talk about time.

Windows
MacOS
Linux

References

Module

NetworkPrediction

Header

/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkedSimulationModelTime.h

Include

#include "NetworkedSimulationModelTime.h"

Syntax

struct FNetworkSimTime

Remarks

Tick and time keeping related structures

Constructors

Name Description

Public function

FNetworkSimTime()

Functions

Name Description

Public function Static

constexpr FN...

 

FromMSec

(
    const FSimTime& InTime
)

Things get confusing with templated types and overloaded functions. To avoid that, use these funcs to construct from either msec or real time.

Public function Static

constexpr FN...

 

FromRealTimeMS

(
    const FRealTime& InRealTime
)

Direct casts to "real time MS" which should be rarely used in practice (TRealTimeAccumulator only current case). All other cases of "real time" imply seconds.

Public function Static

constexpr FN...

 

FromRealTimeSeconds

(
    const FRealTime& InRealTime
)

Public function Static

constexpr FR...

 

GetRealToSimFactor()

Public function Static

constexpr FR...

 

GetSimToRealFactor()

Public function Const

bool

 

IsNegative()

Public function Const

bool

 

IsPositive()

Public function

void

 

NetSerialize

(
    FArchive& Ar
)

FIXME.

Public function

void

 

Reset()

Public function Const

FRealTime

 

ToRealTimeMS()

Public function Const

FRealTime

 

ToRealTimeSeconds()

Public function Const

FString

 

ToString()

Operators

Name Description

Public function Const

T

 

operator-

(
    const T& rhs
)

Public function Const

 

operator FSimTime()

Public function Const

bool

 

operator!=

(
    const T& rhs
)

Public function Const

T

 

operator+

(
    const T& rhs
)

Public function

T &

 

operator+=

(
    const T& rhs
)

Public function Const

bool

 

operator<

(
    const T& rhs
)

Public function Const

bool

 

operator<=

(
    const T& rhs
)

Public function

T &

 

operator-=

(
    const T& rhs
)

Public function Const

bool

 

operator==

(
    const T& rhs
)

Public function Const

bool

 

operator>

(
    const T& rhs
)

Public function Const

bool

 

operator>=

(
    const T& rhs
)

Typedefs

Name

Description

FRealTime

FSimTime

T

Constants

Name

Description

RealToSimFactor

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