quantum-space-buddies/QSB/GeyserSync/GeyserMessage.cs

23 lines
503 B
C#
Raw Normal View History

2020-08-13 17:25:12 +00:00
using QSB.WorldSync;
2020-08-13 13:32:58 +00:00
using UnityEngine.Networking;
namespace QSB.GeyserSync
{
public class GeyserMessage : 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);
}
}
}