Navigation
API > API/Runtime > API/Runtime/Engine
Templated data history, holding a data buffer
| Name | TNetRewindHistory |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Physics/NetworkPhysicsComponent.h |
| Include Path | #include "Physics/NetworkPhysicsComponent.h" |
Syntax
template<typename DataType, bool bLegacyData>
struct TNetRewindHistory : public Chaos::TDataRewindHistory< DataType >
Inheritance Hierarchy
- FBaseRewindHistory → TDataRewindHistory → TNetRewindHistory
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TNetRewindHistory
(
const int32 FrameCount |
Physics/NetworkPhysicsComponent.h | ||
TNetRewindHistory
(
const int32 FrameCount, |
Physics/NetworkPhysicsComponent.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TNetRewindHistory() |
Physics/NetworkPhysicsComponent.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Super | Chaos::TDataRewindHistory< DataType > | Physics/NetworkPhysicsComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool ShouldRecordReceivedDataOnFrame
(
const DataType& ReceivedData, |
Check if we should record received data into history. | Physics/NetworkPhysicsComponent.h | |
virtual bool TriggerRewindFromNewData
(
DataType& NewData |
Compares new received data with local predicted data and returns true if they differ enough to trigger a resimulation | Physics/NetworkPhysicsComponent.h |
Overridden from FBaseRewindHistory
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ApplyDataRange
(
const int32 FromFrame, |
Physics/NetworkPhysicsComponent.h | ||
virtual TUniquePtr< Chaos::FBaseRewindHistory > Clone() |
Physics/NetworkPhysicsComponent.h | ||
virtual bool CopyAllData
(
Chaos::FBaseRewindHistory& OutHistory, |
Physics/NetworkPhysicsComponent.h | ||
virtual bool CopyAlteredData
(
Chaos::FBaseRewindHistory& OutHistory, |
Physics/NetworkPhysicsComponent.h | ||
virtual bool CopyData
(
Chaos::FBaseRewindHistory& OutHistory, |
Physics/NetworkPhysicsComponent.h | ||
virtual TUniquePtr< Chaos::FBaseRewindHistory > CopyFramesWithOffset
(
const uint32 StartFrame, |
Physics/NetworkPhysicsComponent.h | ||
virtual int32 CountAlteredData
(
const bool bIncludeUnimportant, |
Physics/NetworkPhysicsComponent.h | ||
virtual int32 CountValidData
(
const uint32 StartFrame, |
Physics/NetworkPhysicsComponent.h | ||
virtual TUniquePtr< Chaos::FBaseRewindHistory > CreateNew() |
Physics/NetworkPhysicsComponent.h | ||
virtual void DebugData
(
const Chaos::FBaseRewindHistory& DebugHistory, |
Debug the data from the archive | Physics/NetworkPhysicsComponent.h | |
| Print custom string along with values for each entry in history | Physics/NetworkPhysicsComponent.h | ||
virtual void NetSerialize
(
FArchive& Ar, |
Physics/NetworkPhysicsComponent.h | ||
virtual void NetSerialize
(
FArchive& Ar, |
Physics/NetworkPhysicsComponent.h | ||
virtual int32 ReceiveNewData
(
Chaos::FBaseRewindHistory& NewData, |
Physics/NetworkPhysicsComponent.h | ||
virtual void SetImportant
(
const bool bImportant, |
Physics/NetworkPhysicsComponent.h | ||
virtual void ValidateDataInHistory
(
const void* ActorComponent |
Physics/NetworkPhysicsComponent.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static int32 GetMaxArraySize() |
Serialized array size limit to guard against invalid network data | Physics/NetworkPhysicsComponent.h |