21 lines
401 B
C#
Raw Normal View History

2020-12-04 22:14:53 +00:00
using QuantumUNET;
2020-08-09 09:37:32 +02:00
2020-12-14 16:28:03 +00:00
namespace QSB.Messaging
2020-08-09 09:37:32 +02:00
{
2020-12-02 21:23:01 +00:00
public class ToggleMessage : PlayerMessage
{
public bool ToggleValue { get; set; }
2020-08-09 09:37:32 +02:00
2020-12-04 09:23:27 +00:00
public override void Deserialize(QSBNetworkReader reader)
2020-12-02 21:23:01 +00:00
{
base.Deserialize(reader);
ToggleValue = reader.ReadBoolean();
}
2020-08-09 09:37:32 +02:00
2020-12-04 09:23:27 +00:00
public override void Serialize(QSBNetworkWriter writer)
2020-12-02 21:23:01 +00:00
{
base.Serialize(writer);
writer.Write(ToggleValue);
}
}
2020-08-09 09:37:32 +02:00
}