quantum-space-buddies/QSB/WorldSync/Events/BoolWorldObjectMessage.cs

22 lines
497 B
C#
Raw Normal View History

2020-08-26 21:12:57 +01:00
using UnityEngine.Networking;
2020-08-26 20:50:30 +01:00
2020-11-03 22:18:22 +00:00
namespace QSB.WorldSync.Events
2020-08-26 20:50:30 +01:00
{
2020-08-26 21:12:57 +01:00
public class BoolWorldObjectMessage : WorldObjectMessage
2020-08-26 20:50:30 +01:00
{
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);
}
}
}