mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-08 09:41:07 +00:00
21 lines
375 B
C#
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);
|
|
}
|
|
}
|
|
} |