quantum-space-buddies/QSB/ShipSync/Messages/Hull/HullImpactMessage.cs

22 lines
414 B
C#

using QuantumUNET.Transport;
namespace QSB.ShipSync.Messages.Hull
{
public class HullImpactMessage : ImpactDataMessage
{
public float Damage { get; set; }
public override void Deserialize(QNetworkReader reader)
{
base.Deserialize(reader);
Damage = reader.ReadSingle();
}
public override void Serialize(QNetworkWriter writer)
{
base.Serialize(writer);
writer.Write(Damage);
}
}
}