Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FRepLayout
Description
Creates and initializes a new FRepState.
This includes:
- Initializing the ShadowData.
- Associating and validating the appropriate ChangedPropertyTracker.
- Building initial ConditionMap.
| Name | CreateRepState |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/RepLayout.h |
| Include Path | #include "Net/RepLayout.h" |
| Source | /Engine/Source/Runtime/Engine/Private/RepLayout.cpp |
TUniquePtr < FRepState > CreateRepState
(
const FConstRepObjectDataBuffer Source,
TSharedPtr < FRepChangedPropertyTracker > & InRepChangedPropertyTracker,
ECreateRepStateFlags Flags
) const
A new RepState. Note, maybe a a FRepStateBase or FRepStateSending based on parameters.
Parameters
| Name | Remarks |
|---|---|
| RepState | The RepState to initialize. |
| Class | The class of the object represented by the input memory. |
| Src | Memory buffer storing object property data. |
| InRepChangedPropertyTracker | The PropertyTracker we want to associate with the RepState. |