Navigation
API > API/Plugins > API/Plugins/Mover
Contains a group of different FMoverDataStructBase-derived data, and supports net serialization of them. Note that each contained data must have a unique type. This is to support dynamic composition of Mover simulation model definitions (input cmd, sync state, aux state).
| Name | FMoverDataCollection |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/MoverTypes.h |
| Include Path | #include "MoverTypes.h" |
Syntax
USTRUCT (BlueprintType )
struct FMoverDataCollection
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMoverDataCollection() |
MoverTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddDataByCopy
(
const FMoverDataStructBase* DataInstanceToCopy |
Adds data to the collection by copying over an existing struct or cloning the provided struct if no matching struct exists. | MoverTypes.h | |
void AddOrOverwriteData
(
const TSharedPtr< FMoverDataStructBase > DataInstance |
Adds this data instance to the collection, taking ownership of it. | MoverTypes.h | |
void AddStructReferencedObjects
(
FReferenceCollector& Collector |
Exposes references to GC system | MoverTypes.h | |
void Decay
(
float DecayAmount |
Decay input based on DecayAmount for resimulation and forward prediction | MoverTypes.h | |
void Empty() |
MoverTypes.h | ||
FMoverDataStructBase * FindDataByType
(
const UScriptStruct* DataStructType |
Find data of a specific type in the collection. | MoverTypes.h | |
const T * FindDataByType () |
Find data of a specific type in the collection. If not found, null will be returned. | MoverTypes.h | |
T * FindMutableDataByType () |
Find data of a specific type in the collection (mutable version). | MoverTypes.h | |
FMoverDataStructBase * FindOrAddDataByType
(
const UScriptStruct* DataStructType |
Find data of a specific type in the collection. If not found, a new default instance will be added. | MoverTypes.h | |
const T & FindOrAddDataByType () |
Find data of a specific type in the collection. If not found, a new default instance will be added. | MoverTypes.h | |
T & FindOrAddMutableDataByType () |
Find data of a specific type in the collection (mutable version). | MoverTypes.h | |
T & FindOrAddMutableDataByType
(
bool& bOutAdded |
Find data of a specific type in the collection (mutable version). | MoverTypes.h | |
TArray< TSharedPtr< FMoverDataStructBase > >::TConstIterator GetCollectionDataIterator() |
Const access to data array of collections | MoverTypes.h | |
const TArray< TSharedPtr< FMoverDataStructBase > > & GetDataArray() |
MoverTypes.h | ||
bool HasSameContents
(
const FMoverDataCollection& Other |
Checks only whether there are matching structs inside, but NOT necessarily identical states of each one | MoverTypes.h | |
void Interpolate
(
const FMoverDataCollection& From, |
Make this collection a piece-wise interpolation between 2 collections | MoverTypes.h | |
void Merge
(
const FMoverDataCollection& From |
Merge a previous frame's collection with this collection | MoverTypes.h | |
bool NetSerialize
(
FArchive& Ar, |
Serialize all data in this collection | MoverTypes.h | |
bool RemoveDataByType
(
const UScriptStruct* DataStructType |
Removes data of a specific type in the collection. Returns true if data was removed. | MoverTypes.h | |
bool SerializeDebugData
(
FArchive& Ar |
Serializes data in this collection for debug purposes. | MoverTypes.h | |
bool ShouldReconcile
(
const FMoverDataCollection& Other |
Checks if the collections are significantly different enough (piece-wise) to need reconciliation. | MoverTypes.h | |
void ToString
(
FAnsiStringBuilderBase& Out |
Get string representation of all elements in this collection | MoverTypes.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMoverDataStructBase * AddDataByType
(
const UScriptStruct* DataStructType |
MoverTypes.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedPtr< FMoverDataStructBase > CreateDataByType
(
const UScriptStruct* DataStructType |
MoverTypes.h | ||
static void NetSerializeDataArray
(
FArchive& Ar, |
Helper function for serializing array of data | MoverTypes.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FMoverDataCollection& Other |
Comparison operator | MoverTypes.h | |
FMoverDataCollection & operator=
(
const FMoverDataCollection& Other |
Copy operator - deep copy so it can be used for archiving/saving off data | MoverTypes.h | |
bool operator==
(
const FMoverDataCollection& Other |
Comparison operator (deep) - needs matching struct types along with identical states in those structs. | MoverTypes.h |