quantum-space-buddies/QSB/WorldSync/Events/BoolWorldObjectMessage.cs
2020-12-03 08:28:05 +00:00

21 lines
409 B
C#

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