2017-11-25 11:26:55 +01:00
|
|
|
|
|
2017-11-25 11:29:48 +01:00
|
|
|
|
namespace Network.PacketHandling.Packets {
|
2017-11-25 11:26:55 +01:00
|
|
|
|
public class SyncPkt : Serializable {
|
|
|
|
|
|
|
|
|
|
public int LastReliableIDReceived = -1;
|
|
|
|
|
|
2017-11-25 14:21:06 +01:00
|
|
|
|
public int AmountOfPackets = 0;
|
2017-11-25 11:26:55 +01:00
|
|
|
|
|
|
|
|
|
public override void WriteContents(PacketBuffer packetBuffer) {
|
|
|
|
|
packetBuffer.Write(LastReliableIDReceived);
|
|
|
|
|
|
2017-11-25 14:21:06 +01:00
|
|
|
|
packetBuffer.Write(AmountOfPackets);
|
2017-11-25 11:26:55 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void ReadContents(PacketBuffer packetBuffer) {
|
|
|
|
|
LastReliableIDReceived = packetBuffer.ReadInt();
|
|
|
|
|
|
2017-11-25 14:21:06 +01:00
|
|
|
|
AmountOfPackets = packetBuffer.ReadInt();
|
2017-11-25 11:26:55 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|