quantum-space-buddies/QSB/WakeUpMessage.cs
AmazingAlek d7c0c06698
Alek/decoupling (#23)
* refactoring
2020-02-21 23:36:07 +01:00

23 lines
483 B
C#

using QSB.Messaging;
using UnityEngine.Networking;
namespace QSB
{
public class WakeUpMessage : QSBMessage
{
public override MessageType MessageType => MessageType.WakeUp;
private bool _wakeUp = true;
public override void Deserialize(NetworkReader reader)
{
_wakeUp = reader.ReadBoolean();
}
public override void Serialize(NetworkWriter writer)
{
writer.Write(_wakeUp);
}
}
}