quantum-space-buddies/QSB/WorldSync/Events/BoolWorldObjectMessage.cs
2020-12-23 12:58:45 +00:00

21 lines
410 B
C#

using QuantumUNET.Transport;
namespace QSB.WorldSync.Events
{
public class BoolWorldObjectMessage : WorldObjectMessage
{
public bool State { get; set; }
public override void Deserialize(QNetworkReader reader)
{
base.Deserialize(reader);
State = reader.ReadBoolean();
}
public override void Serialize(QNetworkWriter writer)
{
base.Serialize(writer);
writer.Write(State);
}
}
}