mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-18 04:10:36 +00:00
7a4149bee6
This reverts commit 661c04a987
.
21 lines
379 B
C#
21 lines
379 B
C#
using QuantumUNET.Transport;
|
|
|
|
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);
|
|
}
|
|
}
|
|
} |