Navigation
API > API/Plugins > API/Plugins/ConcertSyncCore > API/Plugins/ConcertSyncCore/Replication
References
| Module | ConcertSyncCore |
| Header | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/Replication/SyncControlState.h |
| Include | #include "Replication/SyncControlState.h" |
Syntax
class FSyncControlState
Remarks
Keeps track of the sync control (AllowedObjects), which is a set of objects a client is allowed to replicate. It knows how to parse network messages that explicitly and implicitly change sync control and update AllowedObjects.
This class does not know where the network messages come from and is designed to be used as utility by lower level systems.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSyncControlState
(
TSet< FConcertObjectInStreamID >&& AllowedObjects |
Not explicit to make it useful to use. | ||
FSyncControlState
(
const TSet< FConcertObjectInStreamID >& AllowedObjects |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendAuthorityChange
(
const FConcertReplication_ChangeAuthority_Request& Request, |
||
| void | AppendAuthorityChange
(
const FConcertReplication_ChangeAuthority_Request& Request, |
Combines implicit and explicit sync control changes caused by authority changes. | |
| void | AppendChanges
(
const FConcertReplication_ChangeSyncControl& Event, |
Combines past state with an incoming sync control event. | |
| void | AppendChanges
(
const FConcertReplication_ChangeSyncControl& Event |
||
| void | AppendStreamChange
(
const FConcertReplication_ChangeStream_Request& Request, |
Combines implicit sync control changes caused by stream change. | |
| void | AppendStreamChange
(
const FConcertReplication_ChangeStream_Request& Request |
||
| void | ApplyOrRevertMuteResponse
(
const FPredictedObjectRemoval& ObjectsRemovedInRequest, |
Looks at the response: | |
| void | ApplyOrRevertMuteResponse
(
const FPredictedObjectRemoval& ObjectsRemovedInRequest, |
||
| void | ApplyOrRevertRestoreContentResponse
(
const FPredictedObjectRemoval& ObjectsRemovedInRequest, |
Looks at the response | |
| bool | EnumerateAllowedObjects
(
TProcessObject Callback |
Enumerates all sync controlled objects. | |
| void | EnumerateChanges
(
const FConcertReplication_ChangeSyncControl& Event, |
Enumerates the changes that would be made by applying this event. | |
| bool | IsObjectAllowed
(
const FConcertObjectInStreamID& Object |
||
| uint32 | Num () |
||
| FPredictedObjectRemoval | PredictAndApplyMuteChanges
(
const FConcertReplication_ChangeMuteState_Request& Request |
||
| FPredictedObjectRemoval | PredictAndApplyMuteChanges
(
const FConcertReplication_ChangeMuteState_Request& Request, |
Combines implicit sync control changes caused by the local client sending a mute event. | |
| FPredictedObjectRemoval | PredictAndApplyRestoreContentChanges
(
const FConcertReplication_RestoreContent_Request& Request, |
If the request replaces the content, removes sync control for all objects. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FPredictedObjectRemoval |