quantum-space-buddies/QSB/WorldSync/BoolWorldObjectMessage.cs
2020-08-26 21:12:57 +01:00

22 lines
490 B
C#

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