Snapshot.cs 665 B

1234567891011121314151617
  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.
  5. namespace Mirror
  6. {
  7. public interface Snapshot
  8. {
  9. // the remote timestamp (when it was sent by the remote)
  10. double remoteTime { get; set; }
  11. // the local timestamp (when it was received on our end)
  12. // technically not needed for basic snapshot interpolation.
  13. // only for dynamic buffer time adjustment.
  14. double localTime { get; set; }
  15. }
  16. }