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