UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TNetworkPhysicsDataHelper< DataType, bLegacyData > Struct Template Reference

#include <NetworkPhysicsComponent.h>

+ Inheritance diagram for TNetworkPhysicsDataHelper< DataType, bLegacyData >:

Public Member Functions

 ~TNetworkPhysicsDataHelper ()=default
 
TUniquePtr< FNetworkPhysicsDataHelperClone () const override
 
TUniquePtr< FNetworkPhysicsPayloadCreateUniqueData () const override
 
TUniquePtr< Chaos::FBaseRewindHistoryCreateUniqueRewindHistory (const int32 Size) const override
 
bool IsUsingLegacyData ()
 
void CopyData (const FNetworkPhysicsDataCollection &From, Chaos::FBaseRewindHistory *To) override
 
void CopyData (const Chaos::FBaseRewindHistory *From, FNetworkPhysicsDataCollection &To) override
 
void CopyIncrementalData (const Chaos::FBaseRewindHistory *From, FNetworkPhysicsDataCollection &To) override
 
bool CopyAlteredData (const Chaos::FBaseRewindHistory *From, FNetworkPhysicsDataCollection &To) override
 
void CopyDataGrowingOrdered (const FNetworkPhysicsDataCollection &From, Chaos::FBaseRewindHistory *To) override
 
void ValidateData (Chaos::FBaseRewindHistory *History, INetworkPhysicsInputState_External &Interface) override
 
void ValidateData (Chaos::FBaseRewindHistory *History, INetworkPhysicsInputState_Internal &Interface) override
 
- Public Member Functions inherited from FNetworkPhysicsDataHelper
virtual ~FNetworkPhysicsDataHelper ()=default
 

Detailed Description

template<typename DataType, bool bLegacyData = false>
struct TNetworkPhysicsDataHelper< DataType, bLegacyData >

Helper for the creation of state / input data and history with correct derived type

Constructor & Destructor Documentation

◆ ~TNetworkPhysicsDataHelper()

template<typename DataType , bool bLegacyData = false>
TNetworkPhysicsDataHelper< DataType, bLegacyData >::~TNetworkPhysicsDataHelper ( )
default

Member Function Documentation

◆ Clone()

template<typename DataType , bool bLegacyData = false>
TUniquePtr< FNetworkPhysicsDataHelper > TNetworkPhysicsDataHelper< DataType, bLegacyData >::Clone ( ) const
inlineoverridevirtual

◆ CopyAlteredData()

template<typename DataType , bool bLegacyData = false>
bool TNetworkPhysicsDataHelper< DataType, bLegacyData >::CopyAlteredData ( const Chaos::FBaseRewindHistory From,
FNetworkPhysicsDataCollection To 
)
inlineoverridevirtual

Copy data from the rewind history to the networked data collection and only copy data that has been altered since it was created (i.e. the client created an input that the server later altered)

Implements FNetworkPhysicsDataHelper.

◆ CopyData() [1/2]

template<typename DataType , bool bLegacyData = false>
void TNetworkPhysicsDataHelper< DataType, bLegacyData >::CopyData ( const Chaos::FBaseRewindHistory From,
FNetworkPhysicsDataCollection To 
)
inlineoverridevirtual

Copy data from the rewind history to the networked data collection

Implements FNetworkPhysicsDataHelper.

◆ CopyData() [2/2]

template<typename DataType , bool bLegacyData = false>
void TNetworkPhysicsDataHelper< DataType, bLegacyData >::CopyData ( const FNetworkPhysicsDataCollection From,
Chaos::FBaseRewindHistory To 
)
inlineoverridevirtual

Copy data from the networked data collection to the rewind history

Implements FNetworkPhysicsDataHelper.

◆ CopyDataGrowingOrdered()

template<typename DataType , bool bLegacyData = false>
void TNetworkPhysicsDataHelper< DataType, bLegacyData >::CopyDataGrowingOrdered ( const FNetworkPhysicsDataCollection From,
Chaos::FBaseRewindHistory To 
)
inlineoverridevirtual

Copy data from the networked data collection to the rewind history and store the data ordered instead of circular and grow the history to fit all unique data

Implements FNetworkPhysicsDataHelper.

◆ CopyIncrementalData()

template<typename DataType , bool bLegacyData = false>
void TNetworkPhysicsDataHelper< DataType, bLegacyData >::CopyIncrementalData ( const Chaos::FBaseRewindHistory From,
FNetworkPhysicsDataCollection To 
)
inlineoverridevirtual

Copy data from the rewind history to the networked data collection and only copy data that is newer than the already existing data in the data collection

Implements FNetworkPhysicsDataHelper.

◆ CreateUniqueData()

template<typename DataType , bool bLegacyData = false>
TUniquePtr< FNetworkPhysicsPayload > TNetworkPhysicsDataHelper< DataType, bLegacyData >::CreateUniqueData ( ) const
inlineoverridevirtual

◆ CreateUniqueRewindHistory()

template<typename DataType , bool bLegacyData = false>
TUniquePtr< Chaos::FBaseRewindHistory > TNetworkPhysicsDataHelper< DataType, bLegacyData >::CreateUniqueRewindHistory ( const int32  Size) const
inlineoverridevirtual

◆ IsUsingLegacyData()

template<typename DataType , bool bLegacyData = false>
bool TNetworkPhysicsDataHelper< DataType, bLegacyData >::IsUsingLegacyData ( )
inlinevirtual

◆ ValidateData() [1/2]

template<typename DataType , bool bLegacyData = false>
void TNetworkPhysicsDataHelper< DataType, bLegacyData >::ValidateData ( Chaos::FBaseRewindHistory History,
INetworkPhysicsInputState_External Interface 
)
inlineoverridevirtual

Call the ValidateData callback on the external implementation interface for data in the provided rewind history

Implements FNetworkPhysicsDataHelper.

◆ ValidateData() [2/2]

template<typename DataType , bool bLegacyData = false>
void TNetworkPhysicsDataHelper< DataType, bLegacyData >::ValidateData ( Chaos::FBaseRewindHistory History,
INetworkPhysicsInputState_Internal Interface 
)
inlineoverridevirtual

Call the ValidateData callback on the internal implementation interface for data in the provided rewind history

Implements FNetworkPhysicsDataHelper.


The documentation for this struct was generated from the following file: