Mirror Networking
Snapshot.cs
1// Snapshot interface so we can reuse it for all kinds of systems.
2// for example, NetworkTransform, NetworkRigidbody, CharacterController etc.
3// NOTE: we use '<T>' and 'where T : Snapshot' to avoid boxing.
4// List<Snapshot> would cause allocations through boxing.
5namespace Mirror
6{
7 public interface Snapshot
8 {
9 // the remote timestamp (when it was sent by the remote)
10 double remoteTime { get; set; }
11
12 // the local timestamp (when it was received on our end)
13 // technically not needed for basic snapshot interpolation.
14 // only for dynamic buffer time adjustment.
15 double localTime { get; set; }
16 }
17}