quantum-space-buddies/QSB/Messaging/ToggleMessage.cs
2020-12-14 16:28:03 +00:00

21 lines
401 B
C#

using QuantumUNET;
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);
}
}
}