Navigation
API > API/Runtime > API/Runtime/Chaos
Inheritance Hierarchy
- FBaseRewindHistory
- TDatasRewindHistory
- TNetRewindHistory
References
| Module | Chaos |
| Header | /Engine/Source/Runtime/Experimental/Chaos/Public/RewindData.h |
| Include | #include "RewindData.h" |
Syntax
template<typename DatasType>
struct TDatasRewindHistory : public Chaos::FBaseRewindHistory
Remarks
Templated datas history holding a datas buffer
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsLocalHistory | Check if the history is on the local/remote client | |
| int32 | CurrentFrame | Current frame that is being loaded/recorded | |
| int32 | CurrentIndex | Current index that is being loaded/recorded | |
| TArray< DatasType > | DatasArray | Datas buffer holding the history | |
| int32 | NumFrames | Number of frames used in that history |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TDatasRewindHistory
(
const int32 FrameCount, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | ClosestDatas
(
const int32 DatasFrame, |
Get the closest (min/max) valid datas from the Datas frame | |
| bool | EvalDatas
(
const int32 EvalFrame |
Eval the datas from the buffer at a specific frame | |
| DatasType & | Current datas that is being loaded/recorded | ||
| const DatasType & | |||
| bool | LoadDatas
(
const int32 LoadFrame |
Load the datas from the buffer at a specific frame | |
| uint32 | NumValidDatas
(
const uint32 StartFrame, |
Get the number of valid datas in the buffer index range |
Overridden from FBaseRewindHistory
| Type | Name | Description | |
|---|---|---|---|
| bool | ExtractDatas
(
const int32 ExtractFrame, |
Extract states at a given time | |
| bool | HasValidDatas
(
const int32 ValidFrame |
Check if the history buffer contains an entry for the given frame | |
| bool | RecordDatas
(
const int32 RecordFrame, |
Record the datas from the buffer at a specific frame |