23 lines
554 B
C#
Raw Normal View History

using QSB.WorldSync;
2020-08-12 21:58:29 +02:00
using UnityEngine.Networking;
namespace QSB.ElevatorSync
{
public class ElevatorMessage : WorldObjectMessage
2020-08-12 21:58:29 +02:00
{
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);
}
}
}