FRepLayout::CreateRepState

Creates and initializes a new [FRepState](API\Runtime\Engine\Net\FRepState).

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Net/RepLayout.h

Include

#include "Net/RepLayout.h"

Source

/Engine/Source/Runtime/Engine/Private/RepLayout.cpp

Syntax

TUniquePtr< FRepState > CreateRepState
(
    const FConstRepObjectDataBuffer Source,
    TSharedPtr< FRepChangedPropertyTracker > & InRepChangedPropertyTracker,
    ECreateRepStateFlags Flags
) const

Remarks

Creates and initializes a new FRepState.

This includes:

  • Initializing the ShadowData.

  • Associating and validating the appropriate ChangedPropertyTracker.

  • Building initial ConditionMap.

Returns

A new RepState. Note, maybe a a FRepStateBase or FRepStateSending based on parameters.

Parameters

Parameter

Description

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss