mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-15 22:50:56 +00:00
24 lines
508 B
C#
24 lines
508 B
C#
using QSB.Messaging;
|
|
using QSB.WorldSync;
|
|
using QuantumUNET.Transport;
|
|
|
|
namespace QSB.ShipSync.Messages
|
|
{
|
|
internal abstract class RepairTickMessage<T> : QSBWorldObjectMessage<T> where T: IWorldObject
|
|
{
|
|
protected float RepairFraction;
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(RepairFraction);
|
|
}
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
RepairFraction = reader.ReadSingle();
|
|
}
|
|
}
|
|
}
|