quantum-space-buddies/QSB/WorldSync/Events/BoolWorldObjectMessage.cs

21 lines
410 B
C#
Raw Normal View History

using QuantumUNET.Transport;
2020-08-26 20:50:30 +01:00
2020-11-03 22:18:22 +00:00
namespace QSB.WorldSync.Events
2020-08-26 20:50:30 +01:00
{
2020-12-02 21:23:01 +00:00
public class BoolWorldObjectMessage : WorldObjectMessage
{
public bool State { get; set; }
2020-08-26 20:50:30 +01:00
2020-12-23 12:58:45 +00:00
public override void Deserialize(QNetworkReader reader)
2020-12-02 21:23:01 +00:00
{
base.Deserialize(reader);
State = reader.ReadBoolean();
}
2020-08-26 20:50:30 +01:00
2020-12-23 12:58:45 +00:00
public override void Serialize(QNetworkWriter writer)
2020-12-02 21:23:01 +00:00
{
base.Serialize(writer);
writer.Write(State);
}
}
2020-12-03 08:28:05 +00:00
}