CHANGED TO MIRROR

This commit is contained in:
DerTyp187
2021-10-25 09:20:01 +02:00
parent bd712107b7
commit e509a919b6
611 changed files with 38291 additions and 1216 deletions

View File

@@ -0,0 +1,20 @@
// Snapshot interface so we can reuse it for all kinds of systems.
// for example, NetworkTransform, NetworkRigidbody, CharacterController etc.
// NOTE: we use '<T>' and 'where T : Snapshot' to avoid boxing.
// List<Snapshot> would cause allocations through boxing.
namespace Mirror
{
public interface Snapshot
{
// snapshots have two timestamps:
// -> the remote timestamp (when it was sent by the remote)
// used to interpolate.
// -> the local timestamp (when we received it)
// used to know if the first two snapshots are old enough to start.
//
// IMPORTANT: the timestamp does _NOT_ need to be sent over the
// network. simply get it from batching.
double remoteTimestamp { get; set; }
double localTimestamp { get; set; }
}
}