quantum-space-buddies/QSB/ElevatorSync/ElevatorMessage.cs
2020-08-12 21:58:29 +02:00

23 lines
549 B
C#

using QSB.Messaging;
using UnityEngine.Networking;
namespace QSB.ElevatorSync
{
public class ElevatorMessage : PlayerMessage
{
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);
}
}
}