mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
d7c0c06698
* refactoring
23 lines
483 B
C#
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);
|
|
}
|
|
|
|
}
|
|
} |