Navigation
API > API/Plugins > API/Plugins/ConcertSyncCore > API/Plugins/ConcertSyncCore/FFullObjectFormat
Description
Produces a new payload from Object. TODO: Probably the signature of this function will be extended so you can build from a passed-in FConcertSessionSerializedPayload. Maybe for server sending to clients.
Implementations may create a diff from a previous version of the Object. This function may update the internal cache. If there is not data to apply since the last call, then this returns an empty optional.
Virtual Inheritance
- IObjectReplicationFormat::CreateReplicationEvent → FFullObjectFormat::CreateReplicationEvent
| Name | CreateReplicationEvent |
| Type | function |
| Header File | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/Replication/Formats/FullObjectFormat.h |
| Include Path | #include "Replication/Formats/FullObjectFormat.h" |
| Source | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Private/Replication/Formats/FullObjectFormat.cpp |
virtual TOptional < FConcertSessionSerializedPayload > CreateReplicationEvent
(
UObject & Object,
FAllowPropertyFunc IsPropertyAllowedFunc
)
Data to be placed into FConcertReplicationEvent::SerializedPayload. This can be a diff from the last time CreateReplicationEvent was called. If there is no data to apply since the last time, the optional is empty.
Parameters
| Name | Remarks |
|---|---|
| Object | The object to serialize |
| IsPropertyAllowedFunc | Decides whether a given property is generally supposed to be replicated. Note: IObjectReplicationFormat does diffing itself - only return whether you ever want to replicate the property! |