Navigation
API > API/Plugins > API/Plugins/Mover
References
| Module | Mover |
| Header | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/MoverTypes.h |
| Include | #include "MoverTypes.h" |
Syntax
USTRUCT (BlueprintType )
struct FMoverDataCollection
Remarks
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).
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TSharedPtr< FMoverDataStructBase > > | DataArray | All data in this collection |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FMoverDataStructBase * | AddDataByType
(
const UScriptStruct* DataStructType |
||
| void | AddOrOverwriteData
(
const TSharedPtr< FMoverDataStructBase > DataInstance |
Adds data to the collection. | |
| void | AddStructReferencedObjects
(
FReferenceCollector& Collector |
Exposes references to GC system | |
| TSharedPtr< FMoverDataStructBase > | CreateDataByType
(
const UScriptStruct* DataStructType |
||
| void | Empty () |
||
| FMoverDataStructBase * | FindDataByType
(
const UScriptStruct* DataStructType |
||
| const T * | Find data of a specific type in the collection. If not found, null will be returned. | ||
| T * | Find data of a specific type in the collection (mutable version). | ||
| const T & | Find data of a specific type in the collection. If not found, a new default instance will be added. | ||
| FMoverDataStructBase * | FindOrAddDataByType
(
const UScriptStruct* DataStructType |
||
| T & | Find data of a specific type in the collection (mutable version). | ||
| void | Interpolate
(
const FMoverDataCollection& From, |
Make this collection a piece-wise interpolation between 2 collections | |
| bool | NetSerialize
(
FArchive& Ar, |
Serialize all data in this collection | |
| void | NetSerializeDataArray
(
FArchive& Ar, |
Helper function for serializing array of data | |
| bool | RemoveDataByType
(
const UScriptStruct* DataStructType |
||
| bool | ShouldReconcile
(
const FMoverDataCollection& Other |
Checks if the collections are significantly different enough (piece-wise) to need reconciliation. | |
| void | ToString
(
FAnsiStringBuilderBase& Out |
Get string representation of all elements in this collection |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FMoverDataCollection& Other |
Comparison operator | |
| FMoverDataCollection & | operator=
(
const FMoverDataCollection& Other |
Copy operator - deep copy so it can be used for archiving/saving off data | |
| bool | operator==
(
const FMoverDataCollection& Other |
Comparison operator (deep) - needs matching struct types along with identical states in those structs. |