Table of Contents

Interface ICoherenceSyncUpdater

Namespace
Coherence.Toolkit
Assembly
Coherence.Toolkit.dll
public interface ICoherenceSyncUpdater

Properties

ChangedConnection

bool ChangedConnection { get; }

Property Value

bool

NewConnection

Entity NewConnection { get; }

Property Value

Entity

TaggedForNetworkedDestruction

bool TaggedForNetworkedDestruction { get; set; }

Property Value

bool

logger

Logger logger { get; set; }

Property Value

Logger

Methods

ApplyComponentDestroys(HashSet<uint>)

void ApplyComponentDestroys(HashSet<uint> destroyedComponents)

Parameters

destroyedComponents HashSet<uint>

ApplyComponentUpdates(ComponentUpdates)

void ApplyComponentUpdates(ComponentUpdates componentUpdates)

Parameters

componentUpdates ComponentUpdates

ClearAllSampleTimes()

void ClearAllSampleTimes()

GetComponentUpdates(List<ICoherenceComponentData>, bool)

void GetComponentUpdates(List<ICoherenceComponentData> updates, bool forceSerialize = false)

Parameters

updates List<ICoherenceComponentData>
forceSerialize bool

InterpolateBindings()

void InterpolateBindings()

InvokeCallbacks()

void InvokeCallbacks()

ManuallySendAllChanges(bool)

Sends changes on all bindings manually instead of waiting for the update. External use only when the CoherenceSync behaviour is disabled. The sending of the packet containing these changes is still dependant on the packet send rate. Do no call before the entity has been registered with the client, which will happen after the First update after the client is connected and the CoherenceSync behaviour is enabled. If called before the entity is registered with the client updates will be lost.

void ManuallySendAllChanges(bool sampleValuesBeforeSending)

Parameters

sampleValuesBeforeSending bool

OnConnectedEntityChanged()

void OnConnectedEntityChanged()

PerformInterpolationOnAllBindings()

void PerformInterpolationOnAllBindings()

SampleAllBindings()

void SampleAllBindings()

SampleBindings()

void SampleBindings()

SendTag()

void SendTag()

SyncAndSend()

void SyncAndSend()

TryFlushPosition(bool)

bool TryFlushPosition(bool sampleValueBeforeSending)

Parameters

sampleValueBeforeSending bool

Returns

bool