Table of Contents

Class CoherenceSyncUpdater

Namespace
Coherence.Toolkit
Assembly
Coherence.Toolkit.dll
public class CoherenceSyncUpdater : ICoherenceSyncUpdater
Inheritance
CoherenceSyncUpdater
Implements

Constructors

CoherenceSyncUpdater(ICoherenceSync, IClient)

public CoherenceSyncUpdater(ICoherenceSync coherenceSync, IClient client)

Parameters

coherenceSync ICoherenceSync
client IClient

Properties

ChangedConnection

public bool ChangedConnection { get; }

Property Value

bool

NewConnection

public Entity NewConnection { get; }

Property Value

Entity

TaggedForNetworkedDestruction

public bool TaggedForNetworkedDestruction { get; set; }

Property Value

bool

logger

public Logger logger { get; set; }

Property Value

Logger

Methods

ApplyComponentDestroys(HashSet<uint>)

public void ApplyComponentDestroys(HashSet<uint> destroyedComponents)

Parameters

destroyedComponents HashSet<uint>

ApplyComponentUpdates(ComponentUpdates)

public void ApplyComponentUpdates(ComponentUpdates componentUpdates)

Parameters

componentUpdates ComponentUpdates

ClearAllSampleTimes()

public void ClearAllSampleTimes()

GetComponentUpdates(List<ICoherenceComponentData>, bool)

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

Parameters

updates List<ICoherenceComponentData>
forceSerialize bool

InterpolateBindings()

public void InterpolateBindings()

InvokeCallbacks()

public 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.

public void ManuallySendAllChanges(bool sampleValuesBeforeSending)

Parameters

sampleValuesBeforeSending bool

OnConnectedEntityChanged()

public void OnConnectedEntityChanged()

PerformInterpolationOnAllBindings()

public void PerformInterpolationOnAllBindings()

SampleAllBindings()

public void SampleAllBindings()

SampleBindings()

public void SampleBindings()

SendTag()

public void SendTag()

SyncAndSend()

public void SyncAndSend()

TryFlushPosition(bool)

public bool TryFlushPosition(bool sampleValueBeforeSending)

Parameters

sampleValueBeforeSending bool

Returns

bool