quantum-space-buddies/QSB/WorldSync/Events/BoolWorldObjectMessage.cs
2020-12-04 09:23:27 +00:00

22 lines
438 B
C#

using QSB.QuantumUNET;
using UnityEngine.Networking;
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);
}
}
}