mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
21 lines
369 B
C#
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);
|
|
}
|
|
}
|
|
} |