quantum-space-buddies/QSB/ElevatorSync/ElevatorMessage.cs
2020-08-13 19:34:25 +02:00

23 lines
554 B
C#

using QSB.WorldSync;
using UnityEngine.Networking;
namespace QSB.ElevatorSync
{
public class ElevatorMessage : WorldObjectMessage
{
public ElevatorDirection Direction { get; set; }
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
Direction = (ElevatorDirection)reader.ReadInt32();
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
writer.Write((int)Direction);
}
}
}