mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
21 lines
407 B
C#
21 lines
407 B
C#
using QuantumUNET.Transport;
|
|
|
|
namespace QSB.Messaging
|
|
{
|
|
public class ToggleMessage : PlayerMessage
|
|
{
|
|
public bool ToggleValue { get; set; }
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
ToggleValue = reader.ReadBoolean();
|
|
}
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(ToggleValue);
|
|
}
|
|
}
|
|
} |