quantum-space-buddies/QSB/WorldSync/Events/BoolWorldObjectMessage.cs
2020-12-04 22:14:53 +00:00

21 lines
404 B
C#

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