quantum-space-buddies/QSB.Messaging/WakeUpMessage.cs
amazingalek fb349c78c6
Separate messaging into its own project
* just formatting

* * moved message stuff to new project
* generated .gitignore from https://gitignore.io/api/unity,visualstudio

* fixed build event for message project
2020-02-15 20:55:37 +01:00

19 lines
400 B
C#

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