quantum-space-buddies/QSB/Messaging/FloatMessage.cs
2020-12-14 16:28:03 +00:00

21 lines
369 B
C#

using QuantumUNET;
namespace QSB.Messaging
{
public class FloatMessage : PlayerMessage
{
public float Value;
public override void Deserialize(QSBNetworkReader reader)
{
base.Deserialize(reader);
Value = reader.ReadSingle();
}
public override void Serialize(QSBNetworkWriter writer)
{
base.Serialize(writer);
writer.Write(Value);
}
}
}