Interface INetworkTimeSyncStrategy
Reserved extension point for networked clock synchronization (deferred feature).
A future Networking module will provide concrete implementations such as
AuthoritativeSync, UTCAnchored, and LockstepSync.
Namespace: Scylla.Core.Time
Assembly: ScyllaCore.dll
Syntax
public interface INetworkTimeSyncStrategy
Remarks
When non-null on a ClockDefinition, the assigned strategy will be invoked
from Tick(float) so it can adjust the clock's _currentTickMs
based on incoming network data. The hook site exists in the runtime today as a
null-guarded call; supplying an implementation requires no Time-system code changes.
No implementations of this interface exist in the current codebase.
Methods
OnTick(ScyllaClock, float)
Called once per Tick(float) after the clock has advanced its internal tick count. Implementations may further adjust the clock's tick value to converge with the authoritative server clock, lerp toward a sync packet, or apply lockstep gating.
Declaration
void OnTick(ScyllaClock clock, float unscaledDeltaTime)
Parameters
| Type | Name | Description |
|---|---|---|
| ScyllaClock | clock | |
| float | unscaledDeltaTime |