mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
22 lines
412 B
C#
22 lines
412 B
C#
|
using QuantumUNET.Transport;
|
|||
|
|
|||
|
namespace QSB.ShipSync.Events.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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|