mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-08 09:41:07 +00:00
22 lines
490 B
C#
22 lines
490 B
C#
using UnityEngine.Networking;
|
|
|
|
namespace QSB.WorldSync
|
|
{
|
|
public class BoolWorldObjectMessage : WorldObjectMessage
|
|
{
|
|
public bool State { get; set; }
|
|
|
|
public override void Deserialize(NetworkReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
State = reader.ReadBoolean();
|
|
}
|
|
|
|
public override void Serialize(NetworkWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(State);
|
|
}
|
|
}
|
|
}
|