quantum-space-buddies/QSB/OrbSync/OrbSlotMessage.cs

23 lines
501 B
C#
Raw Normal View History

2020-08-26 20:50:30 +01:00
using QSB.WorldSync;
using UnityEngine.Networking;
namespace QSB.OrbSync
{
public class OrbSlotMessage : 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);
}
}
}