Class CoherenceSyncUpdater
public class CoherenceSyncUpdater : ICoherenceSyncUpdater
- Inheritance
-
CoherenceSyncUpdater
- Implements
Constructors
CoherenceSyncUpdater(ICoherenceSync, IClient)
public CoherenceSyncUpdater(ICoherenceSync coherenceSync, IClient client)
Parameters
coherenceSync
ICoherenceSyncclient
IClient
Properties
ChangedConnection
public bool ChangedConnection { get; }
Property Value
NewConnection
public SerializeEntityID NewConnection { get; }
Property Value
- SerializeEntityID
TaggedForNetworkedDestruction
public bool TaggedForNetworkedDestruction { get; set; }
Property Value
logger
public Logger logger { get; set; }
Property Value
- Logger
Methods
ApplyComponentDestroys(HashSet<uint>)
public void ApplyComponentDestroys(HashSet<uint> destroyedComponents)
Parameters
ApplyComponentUpdates(EntityData)
public void ApplyComponentUpdates(EntityData entityData)
Parameters
entityData
EntityData
ClearAllSampleTimes()
public void ClearAllSampleTimes()
GetComponentUpdates(List<ICoherenceComponentData>, List<uint>, bool)
public void GetComponentUpdates(List<ICoherenceComponentData> updates, List<uint> masks, bool forceSerialize = false)
Parameters
InterpolateBindings()
public void InterpolateBindings()
InvokeCallbacks()
public void InvokeCallbacks()
ManuallySendAllChanges()
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()
OnConnectedEntityChanged()
public void OnConnectedEntityChanged()
PerformInterpolationOnAllBindings()
public void PerformInterpolationOnAllBindings()
SendTag()
public void SendTag()
SyncAndSend()
public void SyncAndSend()
TryFlushPosition()
public bool TryFlushPosition()