Beispiel #1
0
 /// <summary>
 /// Records an acked status from the peer for a given entity ID.
 /// </summary>
 internal void RecordUpdate(EntityId entityId, Tick tick, bool isFrozen)
 {
     this.RecordUpdate(entityId, new RailViewEntry(tick, isFrozen));
 }
Beispiel #2
0
 protected abstract void DecodeData(RailBitBuffer buffer, Tick packetTick);
Beispiel #3
0
 public RailViewEntry(Tick tick, bool isFrozen)
 {
     this.tick     = tick;
     this.isFrozen = isFrozen;
 }
Beispiel #4
0
 public static Tick PeekTick(this RailBitBuffer buffer)
 {
     return(Tick.Peek(buffer));
 }
Beispiel #5
0
 internal void RegisterSent(EntityId entityId, Tick tick, bool isFrozen)
 {
     this.lastSent.RecordUpdate(entityId, tick, isFrozen);
 }
Beispiel #6
0
 public static Tick ReadTick(this RailBitBuffer buffer)
 {
     return(Tick.Read(buffer));
 }
Beispiel #7
0
 public static void WriteTick(this RailBitBuffer buffer, Tick tick)
 {
     tick.Write(buffer);
 }
Beispiel #8
0
 public static Tick operator -(Tick a, int b)
 {
     return(Tick.Subtract(a, b, true));
 }
Beispiel #9
0
 internal void Initialize(Tick tick)
 {
     this.Tick = tick;
 }
Beispiel #10
0
 internal bool HasReadyState(Tick tick)
 {
     return(this.incomingStates.GetLatestAt(tick) != null);
 }