quantum-space-buddies/QSB/Messaging/ToggleMessage.cs
Mister_Nebula 7a4149bee6 Revert "REVERT"
This reverts commit 661c04a987.
2020-12-16 09:08:38 +00:00

21 lines
411 B
C#

using QuantumUNET.Transport;
namespace QSB.Messaging
{
public class ToggleMessage : PlayerMessage
{
public bool ToggleValue { get; set; }
public override void Deserialize(QSBNetworkReader reader)
{
base.Deserialize(reader);
ToggleValue = reader.ReadBoolean();
}
public override void Serialize(QSBNetworkWriter writer)
{
base.Serialize(writer);
writer.Write(ToggleValue);
}
}
}