mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 21:59:16 +00:00
21 lines
463 B
C#
21 lines
463 B
C#
|
using UnityEngine.Networking;
|
|||
|
|
|||
|
namespace QSB.Events
|
|||
|
{
|
|||
|
public class ToggleMessage : PlayerMessage
|
|||
|
{
|
|||
|
public bool On { get; set; }
|
|||
|
|
|||
|
public override void Deserialize(NetworkReader reader)
|
|||
|
{
|
|||
|
base.Deserialize(reader);
|
|||
|
On = reader.ReadBoolean();
|
|||
|
}
|
|||
|
|
|||
|
public override void Serialize(NetworkWriter writer)
|
|||
|
{
|
|||
|
base.Serialize(writer);
|
|||
|
writer.Write(On);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|