quantum-space-buddies/QSB/Messaging/FloatMessage.cs
2020-12-23 12:58:45 +00:00

21 lines
375 B
C#

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