21 lines
493 B
C#
Raw Normal View History

2020-08-09 09:37:32 +02:00
using UnityEngine.Networking;
2020-08-09 12:38:35 +01:00
namespace QSB.Messaging
2020-08-09 09:37:32 +02:00
{
public class ToggleMessage : PlayerMessage
{
2020-08-09 19:33:36 +01:00
public bool ToggleValue { get; set; }
2020-08-09 09:37:32 +02:00
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
2020-08-09 19:33:36 +01:00
ToggleValue = reader.ReadBoolean();
2020-08-09 09:37:32 +02:00
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
2020-08-09 19:33:36 +01:00
writer.Write(ToggleValue);
2020-08-09 09:37:32 +02:00
}
}
}