mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 09:35:26 +00:00
23 lines
501 B
C#
23 lines
501 B
C#
|
using QSB.WorldSync;
|
|||
|
using UnityEngine.Networking;
|
|||
|
|
|||
|
namespace QSB.OrbSync
|
|||
|
{
|
|||
|
public class OrbSlotMessage : 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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|