quantum-space-buddies/QSB/WakeUpMessage.cs

23 lines
483 B
C#
Raw Normal View History

2020-02-21 23:36:07 +01:00
using QSB.Messaging;
using UnityEngine.Networking;
2020-02-21 23:36:07 +01:00
namespace QSB
2020-02-15 20:48:02 +01:00
{
2020-02-21 23:36:07 +01:00
public class WakeUpMessage : QSBMessage
2020-02-15 20:48:02 +01:00
{
2020-02-21 23:36:07 +01:00
public override MessageType MessageType => MessageType.WakeUp;
2020-02-15 20:48:02 +01:00
private bool _wakeUp = true;
2020-02-15 20:48:02 +01:00
public override void Deserialize(NetworkReader reader)
{
_wakeUp = reader.ReadBoolean();
}
2020-02-15 20:48:02 +01:00
public override void Serialize(NetworkWriter writer)
{
writer.Write(_wakeUp);
}
2020-02-21 23:36:07 +01:00
}
}