quantum-space-buddies/QSB/WorldSync/Events/BoolWorldObjectMessage.cs
Mister_Nebula c6c76cb395 C L E A N
2020-12-02 21:23:01 +00:00

22 lines
410 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);
}
}
}