Navigation
API > API/Plugins > API/Plugins/ConcertSyncCore
Abstracts the concept of a replication format for data passed into FConcertReplicationEvent::SerializedPayload.
Example implementations:
- full-object format that serializes all replicated properties and never does any combining (inefficient).
- partial-object format that keeps track of past properties and only sends changed replicated properties.
| Name | IObjectReplicationFormat |
| Type | class |
| Header File | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/Replication/Formats/IObjectReplicationFormat.h |
| Include Path | #include "Replication/Formats/IObjectReplicationFormat.h" |
Syntax
class IObjectReplicationFormat
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IObjectReplicationFormat() |
Replication/Formats/IObjectReplicationFormat.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FAllowPropertyFunc | TFunctionRef< bool(const FArchiveSerializedPropertyChain *Chain, const FProperty &Property)> | Chain can be nullptr or non-null and empty - both imply the Property is a root property. | Replication/Formats/IObjectReplicationFormat.h |
| FOnPropertyVisitedFunc | TFunctionRef< void(const FArchiveSerializedPropertyChain &, FProperty &)> | Replication/Formats/IObjectReplicationFormat.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyReplicationEvent
(
UObject& Object, |
Applies Payload to Object. | Replication/Formats/IObjectReplicationFormat.h | |
void ClearInternalCache
(
TArrayView< UObject > ObjectsToClear |
Clears the internal cache that subclass implementations may rely on for building diffed payload version in CreateReplicationEvent. | Replication/Formats/IObjectReplicationFormat.h | |
void CombineReplicationEvents
(
FConcertSessionSerializedPayload& Base, |
Combines Base and Newer to form a single payload. | Replication/Formats/IObjectReplicationFormat.h | |
TOptional< FConcertSessionSerializedPayload > CreateReplicationEvent
(
UObject& Object, |
Produces a new payload from Object. | Replication/Formats/IObjectReplicationFormat.h |